有以下程序: main() {int a[10]={1,2, 3,4,5,6,7,8,9,10},*p=&a[3],*q=p+2; printf("%d\n",*p+*q); } 程序运行后的输出结果是()。
A.16 B.10 C.8 D.6
单项选择题若有定义int x=0,*p=&x;,则语句printf( %d n ,*p);的输出结果是()。
A.随机值 B.0 C.x的地址 D.p的地址
单项选择题设有定义int n1=0,n2,*p=&n2,*q=&n1;,以下赋值语句中与n2=n1;语句等价的是()。
A.*p=*q; B.p=q; C.*p=&n1; D.p=*q;