【单选题】【消耗次数:1】
执行“int* p=malloc(sizeof(int));”语句后得到的动态分配的整数对象为( B )。
p
*p
**p
p
参考答案:
复制
纠错
相关题目
【单选题】 执行“int* p=malloc(sizeof(int));”语句后得到的动态分配的整数对象为( B )。
①  p
②  *p
③  **p
④  &p
【单选题】 假定指针变量p定义为“int *p=malloc(sizeof(int));”,要释放p所指向的动态存储空间,应调用的函数为?
①  free(p)
②  delete(p)
③  free(*p)
④  free(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);
【单选题】 假定指针变量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 *p=new int[10];访问动态数组元素的正确语句是()
①  int a=p;
②  int a=*p;
③  delete int[]p
④  delete p int[10]
【单选题】 在int a=3,int *p=a;中,*p的值是()
①  变量a的地址值
②  无意义
③  变量p的地址值
④  3
【单选题】 在int a=3,int *p=&a;中,*p的值是()
①  变量a的地址值
②  无意义
③  变量p的地址值
④  3
【单选题】 有以下变量说明,下面不正确的赋值语句是() int a=5,b=10,c; int ?p1=&a,?p2=&b;
①  ?p2=b;
②  p1=a;
③  p2=p1;
④  c=?p1?(?p2)。
随机题目
【单选题】 This is a very difficult operation. It is essential that you __________ for emergency.
①  are to be prepared
②  would prepared
③  be prepared
④  must be prepared
【单选题】 I __________ going to the doctor, but I wish I hadn’t.
①  pick out
②  make out
③  give off
④  put off
【单选题】 I can be a teacher. I’m not a very patient person.
①  seldom
②  ever
③  never
④  always
【单选题】 I remember _______ you the story last night.
①  telling
②  told
③  to tell
④  have told
【单选题】 Not __________, with youth unemployment so high, some school – leavers with qualifications fail to find jobs.
①  obviously
②  surprisingly
③  particularly
④  normally
【单选题】 I’ll send you a short message as soon as I _______ in Hong Kong.
①  arrived
②  will arrive
③  am going to arrive
④  arrive
【单选题】 Good morning, Dr Johnson’s office. Can I help you?
①  Speaking, please
②  I’d like to make an appointment, please
③  Yes, go on
④  No, you can’t
【单选题】 The population of many Alaskan cities has __________ doubled in the past three years.
①  larger than
②  as great as
③  more than
④  as many as
【单选题】 The match was cancelled because most of the members __________ a match without a standard court.
①  objected to having
②  objected to have
③  were objected to have
④  were objected to having
【单选题】 - Shall we sit up here on the grass or down there near the water?
①  I’d rather stay here if you don’t mind
②  Sorry, I don’t like neither
③  Certainly, why not?
④  Yes, we like these two places