有以下程序片段:int a[5]={10,20,30,40,50},*p=a;++p;printf("%d,%d\n",*(a+1),*p); 执行后,输出结果为()。
A. 20,20
B. 11,20
C. 11,11
D. 20,11
查看答案
有以下程序片段:int a[5]={10,20,30,40,50},*p=a;++p;printf("%d,%d\n",*a+1,*(p+1)); 执行后,输出结果为()。
A. 11,21
B. 20,21
C. 20,30
D. 11,30
有函数原型:void f(int *a,int n); 在主调函数中有:int a[]={1,2,3,4,5},*p=a;则不能正确调用f函数的语句是()。
A. f(*a,5);
B. f(a,5);
C. f(&a[0],5);
D. f(p,5);
有定义int a[5]={1,2,3,4,5},*p=a;则p[1]的值为()。
有以下程序片段:int a[5]={10,20,30,40,50},*p=a;*(p+1)=100;printf("%d,%d\n",a[0],a[1]); 执行后,输出结果为()。