网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
如果有定义 int a[10],*p=a;则*(p+9)为:
A.数组开始位置后面第10个字节的内容
B.数组第一个元素a[0]的位置
C.数组第十个元素a[9]的地址
D.数组第十个元素a[9]的内容
参考答案和解析
A
更多 “如果有定义 int a[10],*p=a;则*(p+9)为:A.数组开始位置后面第10个字节的内容B.数组第一个元素a[0]的位置C.数组第十个元素a[9]的地址D.数组第十个元素a[9]的内容” 相关考题
考题
已知函数的原形如下,其中结构体a为已经定义过的结构,且有下列变量定义struct a *f(int t1,int *t2,strcut a t3,struct a *t4)struct a p,*p1;int i;则正确的函数调用语句为A.p=f(10,i,p,p1);B.p1=f(i++,(int *)p1,p,p);C.p=f(i+1,(i+2),*p,p);D.f(i+1,i,p,p);
考题
下面程序的输出结果是#includestdio.hmain(){ int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%d\n",*p+9);}A.0B.1C.10D.9
考题
下面程序的输出结果是includemain(){int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%
下面程序的输出结果是 #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}A.0B.1C.10D.9
考题
下面程序的输出结果是______。 main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*(p+9)); }A.0B.1C.10D.9
考题
设有以下定义的语句,则*(*(p+2)+1)的值为______。int a[3][2]={10,20,30,40,50,60}, (*p)[2];p=a;A.10B.30C.60D.40
考题
设有定义:int a,*p=a,* *pp=p;,则与a=100;等价的语句为()A.**p=100;B.**pp=100;C.a,* *pp=p;,则与a=100;等价的语句为( )A.**p=100;B.**pp=100;C.*p=100;D.*pp=10;
考题
若使P指向包含30个整型元素的动态数组空间,则使用的定义语句为()。A、int*p=newint[30]B、int*p=newint(30)C、int*p=new[30]D、*p=newint[30]
考题
填空题若有定义:int a[ ]={2,4,6,8,10,12},*p=a; ;则*(p+1)的值是()
热门标签
最新试卷