【单选题】【消耗次数:1】
()能正确定义一个指向函数的指针。
int*p()
int(*p)()
(int*)p()
int(*p())
参考答案:
复制
纠错
相关题目
【单选题】 假定指针变量p定义为“int *p=malloc(sizeof(int));”,要释放p所指向的动态存储空间,应调用的函数为?
①  free(p)
②  delete(p)
③  free(*p)
④  free(p)
【单选题】 假定指针变量p定义为“int *p=new int(100);”,要释放p所指向的动态内存,应使用语句( )。
①  delete p;
②  delete *p;
③  delete
④  delete []p;
【单选题】 假定指针变量p定义为“int *p=new int(100);”,要释放p所指向的动态内存,应使用语句( )。
①  delete p;
②  delete *p;
③  delete
④  delete []p;
【单选题】 假定指针变量p定义为“int *p=calloc(30,sizeof(int));”,要释放p所指向的动态内存,应使用语句( )。
①  delete[p];
②  delete(p);
③  free[]p;
④  free(p);
【单选题】 假定指针变量p定义为“int *p=calloc(30,sizeof(int));”,要释放p所指向的动态内存,应使用语句( )。
①  delete[p];
②  delete(p);
③  free[]p;
④  free(p);
【单选题】 在int a=3,int *p=a;中,*p的值是()
①  变量a的地址值
②  无意义
③  变量p的地址值
④  3
【单选题】 在int a=3,int *p=&a;中,*p的值是()
①  变量a的地址值
②  无意义
③  变量p的地址值
④  3
【单选题】 已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①  不确定的值
②  形参p中存放的值
③  形参p所指存储单元中的值
④  形参p的地址值
【单选题】 假定p为指向二维数组int d[4][6]的指针,则p的类型为( )。
①  int*
②  int**
③  int[6]
④  int(*)[6]
【单选题】 假定变量m定义为“int ”,则下列定义p的正确语句为?
①  int p=
②  int *p=
③  int
④  int *p=m;
【单选题】 下面代码:int a[5];int *p;a[0]=1;a[1]=2;p=a;*p的值
①  a
②  1
③  2
④  null
随机题目
【单选题】 In high school, I was very unpopular, and I did ( ) the discrimination from my classmates.
①  encountered
②  encounter
③  had encountered
④  will encounter
【单选题】 The pavilions of each country at the World Expo can reveal the ( ) cultures of the world.
①  diversity
②  diversify
③  divert
④  diverse
【单选题】 His ( ) as a social worker brings him much thinking of the meaning of life and charity.
①  job
②  profession
③  work
④  career
【单选题】 He denied that his country wants to () Europe.
①  dominate
②  control
③  document
④  domestic
【单选题】 It may also () morale and mutual trust.
①  undermine
②  unique
③  under
④  use
【单选题】 Everyone must() his share of the responsibility to protect the environment.
①  assumed
②  assume
③  assuming
④  assumptive
【单选题】 Much importance should be ( ) to physical and mental health of students, which, however, is often neglected.
①  attached
②  detached
③  stressed
④  thrown
【单选题】 Our master, who is an experienced teacher, is expert in ( ) students to seek knowledge themselves.
①  discouraging
②  criticizing
③  motivating
④  forcing
【单选题】 As pioneers, ( ) from around the globe are making deep-space journeys.
①  astronauts
②  astronomers
③  astrophysicist
④  astrologers
【单选题】 My daughter is really fond of the ( ) of the curtain in her bedroom which she chose herself.
①  drawing
②  pattern
③  style
④  design