const 与指针组合 | C语言

本章覆盖:pointer to const;const pointer;const pointer to const;从右向左/基于声明器结构阅读;const 限制的是通过该左值进行修改的能力;接口中使用 const 表达只读契约。

本章知识点

  • pointer to const
  • const pointer
  • const pointer to const
  • 从右向左/基于声明器结构阅读
  • const 限制的是通过该左值进行修改的能力
  • 接口中使用 const 表达只读契约