答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
假定变量m定义为“int m=7;”,则定义p的正确语句为( )。
①
int p=
②
int *p=
③
int
④
int *p=m;
参考答案:
复制
纠错
相关题目
【单选题】
假定变量m定义为“int m=7;”,则定义p的正确语句为( )。
①
int p=
②
int *p=
③
int
④
int *p=m;
查看完整题目与答案
【单选题】
假定变量m定义为“int ”,则下列定义p的正确语句为?
①
int p=
②
int *p=
③
int
④
int *p=m;
查看完整题目与答案
【单选题】
假定有定义为“int m=7, *p;”,则给p赋值的正确表达式为?
①
p=m;
②
p=
③
*p=
④
p=*m;
查看完整题目与答案
【单选题】
假定指针变量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);
查看完整题目与答案
【单选题】
假定指针变量p定义为“int *p=malloc(sizeof(int));”,要释放p所指向的动态存储空间,应调用的函数为?
①
free(p)
②
delete(p)
③
free(*p)
④
free(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
查看完整题目与答案
随机题目
【单选题】
The taxi driver _______ at me in the rear-view mirror when I got on the car.
①
smile
②
laughed
③
grinned
④
stared
查看完整题目与答案
【单选题】
I treaded cautiously______ the tatami matting.
①
on
②
in
③
down
④
out
查看完整题目与答案
【单选题】
But later my hair began to fall_______, and my belly turned to water.
①
over
②
through
③
out
④
away
查看完整题目与答案
【单选题】
The tall building of the martyred city flashed by as we lurched from side to side ______ the driver’s sharp twists of the wheel.
①
in response to
②
as response to
③
in response of
④
as response of
查看完整题目与答案
【单选题】
He reverted_______ this theme
①
into
②
on
③
onto
④
to
查看完整题目与答案
【单选题】
After a week at sea, the sailors saw ______.
①
land
②
earth
③
ground
④
soil
查看完整题目与答案
【单选题】
The doctor gave the old man a _____ examination and congratulated him on his speedy recovery.
①
cautious
②
cautiously
③
careful
④
carefully
查看完整题目与答案
【单选题】
Tobacco addicts remain hopelessly blind to signs that say NO SMOKING.
①
A.瘾君子仍然绝望地对那些“严禁吸烟”的布告牌视而不见。
②
B.瘾君子绝望了,他们对那些“严禁吸烟”的布告牌都视而不见了。
③
C.瘾君子对那些“严禁吸烟”的布告牌视而不见,因为他们绝望了。
④
D.瘾君子对那些“严禁吸烟”的布告牌视而不见,真是不可救药。
查看完整题目与答案
【单选题】
The door opens, and who should enter but the very man we were talking of.
①
A.门开了,谁想到进来的正是我们刚才谈论的人。
②
B.门开了,除了那个我们正在谈论的人,谁应该进来?
③
C.门开了,谁还能进来,不就是那个我们刚才还在谈论的人嘛。
④
D.门开了,果然是我们刚才谈论的人进来了。
查看完整题目与答案
【单选题】
“The firm was closed owing to large losses.” 请问下面哪个译文最合适?________。
①
A. 这个公司由于损失很大而倒闭。
②
B. 这家公司由于巨大亏损而倒闭。
③
C. 该公司因巨额亏损而倒闭。
④
D. 这家公司因为损失太大所以倒闭了。
查看完整题目与答案