Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

练习2.29中,d,e,f都错了 #33

Open
muyou111 opened this issue Jul 17, 2021 · 2 comments
Open

练习2.29中,d,e,f都错了 #33

muyou111 opened this issue Jul 17, 2021 · 2 comments

Comments

@muyou111
Copy link

d中,p3是const指针,已经存在了就不能再变化,不能再将&ic的值赋给p3;
e中,同d,p2是const指针,已经初始化就不能再变化;
f中,ic已经是一个常量,*p3也是一个常量,不能进行赋值操作

@jorhelp
Copy link

jorhelp commented Feb 20, 2022

我也觉得d,e,f都错了,题目说的是已经有上一个练习中定义的那些变量,而常量指针以及常量必须初始化,所以在2.29中等号相当于赋值操作,显然不正确。

@Royalvice
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants