当前位置: 代码迷 >> 综合 >> 【C Prime Plus】学习笔记,Chapter 12, 指针常量和常量指针
  详细解决方案

【C Prime Plus】学习笔记,Chapter 12, 指针常量和常量指针

热度:16   发布时间:2024-01-19 15:44:03.0

关于中文翻译过来的"指针常量"和"常量指针" 叫起来还真顺口,颠倒一下都顺口,反导致记不住其真实差别,好像类似这样AB /BA 结构的东西第一次记错后,后面就无法纠正了,反正我是经常一段时间后就忘记了。

一句简单的英文 就能解决了这个问题:

In short,a const anywhere to the left of the * makes the date constant,and a const to the right of the * makes
the pointer itself constant.

 

//---

 

Page 882-884

 

  相关解决方案