【单选题】【消耗次数:1】
已知int a[10]={0,1,2,3,4,5,6,7,8,9},*p=a;不能表示数组a中元素的式子是()
*a
*p
a
a[p-a]
参考答案:
复制
纠错
相关题目
【简答题】 int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【单选题】 有以下程序段int?a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],b;b=p[5];b中的值是()
①  5
②  6
③  8
④  9
【单选题】 已知int a[]={ 0,2,4,6,8,10 },*p=a+1;其值等于0的表达式是()
①  *(p++)
②  *(++p)
③  *(p--)
④  *(--p)
【单选题】 若有定义:int a[5],*p=a;则不能正确表示数组元素a[i]的是()。
①  *(a+i)
②  *(p+i)
③  p[i]
④  *p[i]
【单选题】 下面代码:int a[5];int *p;a[0]=1;a[1]=2;p=a;*p的值
①  a
②  1
③  2
④  null
【单选题】 已知:inta[][3]={1,2,3,4,5,6,7,8,9,0};则数组a的第一维的大小是()
①  2
②  3
③  4
④  无法确定;
【单选题】 若有定义:int a[10],*p=a;则错误引用数组元素a[2]地址的是()。
①  p+2
②  a+2
③  p[2]
④  *a+2
【单选题】 若有以下数组说明inta[12]={1,4,7,10,2,5,8,11,3,6,9,12};则i=10;a[a[i]]元素数值是( )。
①  10
②  9
③  6
④  5
【判断题】 若有int a[10]; p= 则p-1的值是数组a第1个元素的地址。
①  正确
②  错误
随机题目
【单选题】 Howmanymoredecadeswillhavetopass    scientistssucceedinprovidingacureforcancer?
①  when
②  before
③  since
④  until
【单选题】 DadandMomaretoobusytohelpus.Letsdoit______.
①  herself
②  himself
③  themselves
④  ourselves
【单选题】 Theaccidenthappened____themorningofMay2nd.
①  in
②  on
③  at
④  for
【单选题】 Thereislittlewaterinthebottle,_____?
①  isntthere
②  isit
③  arethere
④  isthere
【单选题】 Iwasverybusyyesterday;otherwise,I_____toyourbirthdayparty.
①  wouldcome
②  came
③  wouldhavecome
④  shouldcome
【单选题】 --WouldyoumindifIopenthewindowforawhile?-----__________________________
①  Ofcoursenot.
②  Thatisfine,thanks.
③  Yes,pleasegoaheaD.
④  Yes,itisok.
【单选题】 Everystudenthasfree_______tothelibrary.
①  access
②  chance
③  use
④  right
【单选题】 —ImgoingtoHangzhouforaholidaythisweekend.—_________youarethere,canyoubuymesomegreentea?
①  Because
②  While
③  If
④  Though
【单选题】 Look!Yourcomputeriscoveredwithdust.Whynotputacoveroverittokeepit___thedirt.
①  farfrom
②  apartfrom
③  freefrom
④  awayfrom
【单选题】 —Whomadeaphonecalltomejustnow,David?—Idontknow,butiswasagirls_____.
①  sound
②  singing
③  noise
④  voice