题目内容

#includemain () {int a=1,b=2; while (a<6) {b+=a; a+=2; b%=10;} printf("%d,%d\n",a,b); } the output of the program is ( )

A. 5,11
B. 7,1
C. 7,11
D. 6,1

查看答案
更多问题

There are the following procedures: #include int main(void) { int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a

A. 0,0
B. 0,1
C. 1,0
D. 1,1

The illegal expression in the following options is ( )

A. 0<=x<100
B. i=j==0
C. (char)(65+3)
D. x+1=x+1

If the variables are correctly defined and assigned, the following legal C language assignment statement is( ).

A. x=y==5;
B. x=n%2.5;
C. x+n=i;
D. x=5=4+1;

If the variable is defined and assigned correctly, the following correct expression is ( )

A. x=y*5=x+z
B. int(15.8%5)
C. x=y+z+5,++y
D. x=25%5.0

答案查题题库