【单选题】【消耗次数:1】
假定p为指向二维数组int d[4][6]的指针,则p的类型为( )。
int*
int**
int[6]
int(*)[6]
参考答案:
复制
纠错
相关题目
【判断题】 指向整型数据的指针类型表示为“int *”,读作“指向int的指针”或简称“int指针”。
①  正确
②  错误
【单选题】 假定指针变量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;
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为?
①  0
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为( )。
①  0
②  4
③  8
④  6
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为(???)。
①  0
②  4
③  8
④  6
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为(???)。
①  2
②  4
③  6
④  8
随机题目
【单选题】 ____ of them knew about the plan because it was a secret.
①  Some
②  Any
③  No one
④  None
【单选题】 At this stage we cannot tell you____ you have been selected for the job or not.
①  unless
②  although
③  whenever
④  whether
【单选题】 Our factory has ____ for years.
①  many fire equipments
②  much equipment of fire
③  many equipments of fire
④  much fire equipment
【单选题】 16. I took the medicine, but it didnt ____.
①  work
②  help
③  make
④  affect
【单选题】 The city ____ its birth-rate by almost 60% in the past 20 years.
①  cuts
②  has been cut
③  cut
④  has cut
【单选题】 ?There are altogether fifty students in our class, twenty____ are boys. ?
①  of them ?
②  of those ?
③  of whom ?
④  of whose ?
【单选题】 They have built a____.?
①  bridge hundred meters ?
②  bridge a hundred meters long?
③  a hundred meters long bridge ?
④  bridge hundred meters long?
【单选题】 —You’ve given us a wonderful Chinese dinner, Mrs Huang.—____.
①  Oh, I’m afraid I didn’t cook well
②  I’m glad you enjoyed it
③  It’s not necessary for you to say so
④  It doesn’t matter
【单选题】 2. Everyone of them ____ tired and wanted a good rest.
①  seems
②  is seemed
③  was seemed
④  seemed
【单选题】 10. I am not a violent man ____, but these insults were more than I could bear.
①  by birth
②  with birth
③  by nature
④  with nature