阅读下列程序,则程序的输出结果为______。 include "stdio.h" struet ty { int data;
A.构造
B.static构造
C.static
D.没有输出结果
A.x+y+z=48
B.x+y+z=35
C.x+z=35
D.不确定
阅读以下程序,输出结果为_________。 class D{ public static void main (String args[]){ int d=21; Dec dec=new Dec(); dec. decrement (d): System.out.println(d); } } class Dec{ public void decrement(int decMe){ decMe=decMe-1: } }
A.5
B.6
C.7
D.8
有下列程序: include<stdio.h> main() {char c; while((c=getchar())!=,)putchar(C) ; } 程序运行时,如果从键盘输入:A,B,<CR>,则输出结果为______。
A.输出1个hello
B.输出2个hello后会抛出异常
C.输出3个hello后会抛出异常
D.不会输出hello,直接抛出异常
阅读下列程序并写出程序运行结果。
Public Sub change1(ByVal x As Integer, ByVal y As Integer)
Dim t As Integer
t = x
x = y
y = t
End Sub
Public Sub change2(x As Integer, y As Integer)
Dim t As Integer
t = x
x = y
y = t
End Sub
Private Sub Form_Click()
Dim a As Integer, b As Integer
a = 22: b = 33
change1 a, b
Form1.Print "A1="; a, "B1="; b
a = 22: b = 33
change2 a, b
Form1.Print "A2="; a, "B2="; b
End Sub
写出程序运行时,单击窗体Form1上的输出结果。
阅读下面程序,则程序的执行结果为【 】。 include"stdio.h" main() { int a=30,b=20,z; z=fun(a+b,a-b); printf("%d\n",z);} fun(int a,int b) { int z; z=a/b; return z;}