There are the following procedures: 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
查看答案
It is known that the ASCII code value of character 'A' is 65, the value of character variable c1 is' A ', and the value of c2 is' D'. Execute statement printf (""%d,%d ", c1, c2-2); after that, the output is ()
A,B
B. A,68
C. 65,66
D. 65,68
There is a definition: int a = 1, b = 2, c = 3;the statement whose execution effect is different from the other three is ( )
A. if(a>b) c=a,a=b,b=c;
B. if(a>b) {c=a,a=b,b=c;}
C. if(a>b) c=a;a=b;b=c;
D. if(a>b) {c=a;a=b;b=c;}
The correct expression to determine whether the char variable s is lowercase is ( )
A. ’a’ <= s<=’z’
B. (s>=’a’) & (s<=’z’)
C. (s>=’a’) && (s<=’z’)
D. (’a’=s)
The running situation of the following program is ( ) main() { int i=1,sum=0; while(i<10) sum=sum+1; i++; printf("i=%d,sum=%d",i,sum); }
A. i=10,sum=9
B. i=9,sum=9
C. i=2,sum=1
D. dead loop