【单选题】【消耗次数:1】
在int a=3,int *p=a;中,*p的值是()
变量a的地址值
无意义
变量p的地址值
3
参考答案:
复制
纠错
相关题目
【单选题】 在int a=3,int *p=&a;中,*p的值是()
①  变量a的地址值
②  无意义
③  变量p的地址值
④  3
【判断题】 若有int a[10]; p= 则p-1的值是数组a第1个元素的地址。
①  正确
②  错误
【判断题】 若有int a[10]; p= 则p+1的值是数组a第1个元素的地址。
①  正确
②  错误
【单选题】 下面代码:int a[5];int *p;a[0]=1;a[1]=2;p=a;*p的值
①  a
②  1
③  2
④  null
【单选题】 已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①  不确定的值
②  形参p中存放的值
③  形参p所指存储单元中的值
④  形参p的地址值
【单选题】 下面代码:int x=10,y,*p;*p=y=*p;y的值
①  1
②  10
③  3
④  错误
【单选题】 若有定义:int*p,k=4;p=以下均代表地址的是()。
①  k,p
②  k,p
③  k,p
④  k,*p
【单选题】 有以下程序段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 *p1, *p2= 由此可知变量a的类型是:int *。
①  正确
②  错误
【单选题】 假定指针变量p定义为“int *p=new int(100);”,要释放p所指向的动态内存,应使用语句( )。
①  delete p;
②  delete *p;
③  delete
④  delete []p;
随机题目
【单选题】 You’re better ____ from work tomorrow.
①  not be absent
②  not to absent
③  not to be absent
④  not absenting
【单选题】 He considered that the change would be ____ to his health.
①  healthy
②  available
③  profitable
④  beneficial
【单选题】 Mary will not be able to come to the birthday party as she is ____ with a cold.
①  laid out
②  laid up
③  laid by
④  laid down
【单选题】 A ____ language is one which is still spoken by people in the course of their everyday lives.
①  living
②  live
③  lovely
④  alive
【单选题】 The ____ of beer and alcohol in New Zealand is very high.
①  consumption
②  use
③  drink
④  absorption
【单选题】 The woman murdered her friend and ______ to ______.
①  was sentenced , death
②  sentencing , die
③  sentenced , death
④  sentenced , die
【单选题】 _____ that we couldn’ t catch up with him.
①  So fast he ran
②  So fast did he run
③  So fast ran he
④  Such fast did he run
【单选题】 Their happiness was very ____.
①  crisp
②  brittle
③  delicate
④  fragile
【单选题】 I am ____ grateful for the many kindnesses you have shown my son.
①  excessively
②  much
③  certainly
④  exceedingly
【单选题】 His answer was so confused that I could hardly make any ____ of it at all.
①  explanation
②  meaning
③  sense
④  interpretation