here are definitions:int a=1, b=2, c=3; the execution effect which 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;}
查看答案
#includeint fun(int x,int y) { if(x==y) return(x); else return((x+y)/2); }main() { int a=4,b=5,c=6; printf("%d\n",fun(2*a,fun(b,c))); } The output of the program is ( )
A. 3
B. 6
C. 8
D. 12
In the following options, the value of expression ( ) is 0, when x is both an odd number and greater than 1.
A. x%2==1
B. x/2
C. x%2!=0
D. x%2==0
The output of the following program is ______ int main(void) { int p=30; printf("%d\ n", (p/3>0?p/10:p%3)); }
The output of the following program is______ int main(void) { int x=20; printf("%d",0