Aquacolor

Aquacolor



【C++】const的不同含义

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



const int a;

int const a;

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

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

const int *a;



©

comment 评论区

添加新评论

face表情



  • ©2026 bilibili.com

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


star_outline 咱快来抢个沙发吧!




©2026 Aquacolor

Theme Romanticism2.2 by Akashi
Powered by Typecho