答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数: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
查看完整题目与答案