题目内容

According to the declaration " struct stu{ int age; int num;} s, *p=&s;", which one is incorrect reference to the member "age" of variable "s"? ( )

A. s.age
B. stu.age
C. p->age
D. (*p).age

查看答案
更多问题

Which one is equivalent to the expression "!x" in " while(!x)"? ( )

A. x==0
B. x==1
C. x!=1
D. x!=0

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

答案查题题库