Aquacolor

Aquacolor



【C++】const的不同含义

zcxsb · 2024-08-28 · 56浏览 · 实践操作,语言


const int a;

int const a;

int* const a = &b; a是指针常量 即指针自己不能变

int const *a; a是常指针,即指向常数的指针,指针自己可以变

const int *a;





comment 评论区

添加新评论





  • ©2025 bilibili.com

textsms
内容不能为空
account_circle
昵称不能为空
email
邮件地址格式错误
web
beach_access
验证码不能为空
keyboard发表评论


star_outline 咱快来抢个沙发吧!




©2025 Aquacolor

鄂ICP备2024059763号-1

鄂公网安备42011102005556号



Theme Romanticism2.1 by Akashi
Powered by Typecho