题目内容

double a[10],*s=a; What can represent array element a [3] is ( ).

A. (*s)[3]
B. *(s+3)
C. *s[3]
D. *s+3

查看答案
更多问题

void fun(int p) { int d=2; p=d++; printf("%d",p); } main() { int a=1; fun(a); printf("%d\n",a); } The output of the program is ( )

A. 32
B. 12
C. 21
D. 22

int 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

The following function has been defined: fun (int*p) {return *p;} The return value of this function is ( )

A. Uncertain value
B. Values stored in parameter p
C. The value in the storage unit referred to by parameter p
D. Address value of parameter p

Defined: struct complex{ int real,unreal;} data1={1,8},data2; The wrong assignment statement is ( )

A. data2=data1;
B. data2={2,6};
C. data2.real=data1.real;
D. data2.real=data1.unreal;

答案查题题库