问答题
main( ){ int x[5]={2,4,6,8,10}, *p, **pp;p=x; pp=&p;printf("%d",*(p++));printf("%3d",**pp);}
【参考答案】
2 4【解析】printf("%d",*(p++));语句等价于printf("%d",*p); p++; 因此输出数组x的元素x[0]的值,即2;然后指针下移指向x[1]。printf("%3d\n",**pp);语句*pp值为变量p所存储的地址,**pp等价于*p即x[1],即等价于语句printf("%3d\n", x[1]);。
点击查看答案
相关考题
-
问答题
未成年人会有远视吗 -
单项选择题
The maximum gain for the purchaser of a call option contract is ________ while the maximum loss is ________.
A.unlimited; the premium paid
B.the premium paid; unlimited
C.unlimited; unlimited
D.unlimited; the value of the underlying asset -
问答题
儿童急性结膜炎是用眼药水还是药膏
