题目内容

What is the output of this statement "printf("%2d", 2010);"? ( )

A. 2010
B. 20
C. 10
D. compile error

查看答案
更多问题

According to the declaration "int a=5,_b=6,_c=7,_m=2,_n=2;", what is the value of "n" after the expression "(m=a>b)&&(n=b>c)" is executed? ( )

A. 0
B. 1
C. 2
D. 3

According to the declaration "double x[5]={1,_2},_*p=x;", which one is incorrect reference to an array element? ( )

A. *p
B. x[5]
C. *(p+1)
D. *x

According to the declaration "int x=10;", what is the value of the expression "x-=x+x"?( )

A. 10
B. 20
C. 0
D. -10

What is the value of "i" after the following program segment is executed ?( ) int i; for(i=0; i<10; i=++) if (i<5) break;

A. 1
B. 0
C. 5
D. 10

答案查题题库