如有定义:intm,n=5,*p=&m;则与m=n等价的语句是:
A. m=*p
B. *p=*&n;
C. m=&n;
D. m=**p;
查看答案
若有以下说明,且0<=i<10,则对数组元素的错误引用是:inta[]={0,1,2,3,4,5,6,7,8,9},*p=a,i;
A. *(a+i)
B. a[p-a+i]
C. p+i
D. *(&a[i])
下列程序的输出结果是:intmain(void){inta[10]={0,1,2,3,4,5,6,7,8,9},*p=a+3;printf("%d",*p);return0;}
A. 2
B. 3
C. 4
D. a[3]的地址
下列程序的输出结果是:intmain(void){inta[10]={0,1,2,3,4,5,6,7,8,9},*p=a;printf("%d",*(p++));return0;}
A. 0
B. 1
C. 2
D. 错误
下列程序的输出结果是:intmain(void){inta[10]={0,1,2,3,4,5,6,7,8,9},*p=a;printf("%d",*(++p));return0;}
A. 0
B. 1
C. 2
D. 3