摘要: constexpr int* p = nullptr;//常量指针,指针不能动,相当于int* const p = nullptr的意思 const int* p = nullptr;//指向常量 两个的含义事不同的constexpr只能修饰指针,const可以透过解地址符号指向常量 阅读全文
posted @ 2022-11-29 16:45 heisse 阅读(19) 评论(0) 推荐(0) 编辑