Changes between Version 11 and Version 12 of const


Ignore:
Timestamp:
Oct 30, 2013, 12:57:41 AM (9 years ago)
Author:
andersk@mit.edu
Comment:

A const array is the same thing as an array of const elements.

Legend:

Unmodified
Added
Removed
Modified
  • const

    v11 v12  
    88||`const int *const p;`||The pointer cannot be repointed, and the value of the `int` cannot be changed through this pointer.||
    99||`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.)
    1011||`const char **pp;`||The `char` pointed to by `*pp` cannot be changed through it.||
    1112||`char *const *pp;`||The `char *` pointed to by `pp` cannot be repointed through it.||