题目内容

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

The option for properly defining a one-dimensional array is ( )

A. int num[];
B. #define N 100 int num[N];
C. int num[0..100];
D. int N=100; int num[N];

The correct statement group in the following options is ( ).

A. char s[8]; s={"Beijing"};
B. char *s; s={"Beijing"};
C. char s[8]; s="Beijing";
D. char *s; s="Beijing";

答案查题题库