Changes between Version 11 and Version 12 of const
- Timestamp:
- Oct 30, 2013, 12:57:41 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
const
v11 v12 8 8 ||`const int *const p;`||The pointer cannot be repointed, and the value of the `int` cannot be changed through this pointer.|| 9 9 ||`const int a[3];`||The values of the `int`s in the array cannot be changed.|| 10 || ||(Note: unlike with pointers, a `const` array is the same thing as an array of `const` elements.) 10 11 ||`const char **pp;`||The `char` pointed to by `*pp` cannot be changed through it.|| 11 12 ||`char *const *pp;`||The `char *` pointed to by `pp` cannot be repointed through it.||