下面程序的运行结果是()。x=5:y=3PRINTx=yEND
A、0
B、5
C、3
D、–1
第1题:
下面程序的运行结果是( )。 y=5;x=14;y=((x=3*y,x+6),x-1); printf("x=%d,y=%d”,x,y);
A.x=27,y=27
B.x=12,y=13
C.x=15,y=14
D.x=y=27
第2题:
下面程序的运行结果是 #include<iostream,h> void fun(int*a,int*b) { int X= *a; * a= *b; *b=X; cout<< *a<< *b<<" "; void main() int x=1, y=2; fun(&x,&y); cout<<X<<y<<end1; }
A.12 12
B.12 21
C.21 12
D.21 11
第3题:
若x=4,y=5,则x&y的结果是( )。
A)0
B)4
C)3
D)5
第4题:
下面程序的运行结果是【 】。
include <iostream>
using namespace std;
void fun(int &a, int b=3)
{
static int i=2;
a = a + b + i;
i = i + a;
}
int main()
{
int x=5, y=2;
fun(x, y);
cout<<x<<",";
fun(x);
cout<<x<<end1;
return 0;
}
第5题:
(33)有如下事件程序,运行该程序后输出结果是
Private Sub Command33_Click()
Dim x As Integer,y As Integer
x=1:y=0
Do Until y<=25
y=y+x*x
x=x+1
Loop
MsgBox "x="&x&",y="&y
End Sub
A)x=1,y=0
B) x=4,y=25
C)x=5,y=30
D)输出其他结果