📜  const in - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:34.599000             🧑  作者: Mango

代码示例1
int *ptr; // *ptr is an int value
int const *ptrToConst; // *ptrToConst is a constant (int: integer value)
int * const constPtr; // constPtr is a constant (int *: integer pointer)
int const * const constPtrToConst; // constPtrToConst is a constant (pointer)
                                   // as is *constPtrToConst (value)