下列语句或语句序列中错误的是

admin2021-07-02  39

问题 下列语句或语句序列中错误的是

选项 A、int a;const int *point = &a;
B、const int a = 10;
C、const int *point = 10;
D、const int *point = new int(10);

答案C

解析 本题考查常指针,C选项中不能直接将整型变量赋值给常指针,所以C选项错误。
转载请注明原文地址:https://kaotiyun.com/show/6ifp777K
0

最新回复(0)