单选题
执行下列3条语句后,指针cp将指向______。
int a, b, *cp=&a;
int *ptr=cp;
ptr=&b;
A、
.p
B、
.c
C、
.b
D、
.a
【正确答案】
D
【答案解析】
[解析] 只有第一条语句对指针cp赋值,使其指向a。
提交答案
关闭