Changes between Version 1 and Version 2 of const


Ignore:
Timestamp:
Oct 19, 2009, 10:35:12 PM (15 years ago)
Author:
andersk@mit.edu
Comment:

Add some semicolons.

Legend:

Unmodified
Added
Removed
Modified
  • const

    v1 v2  
    88||`const int *const p;`||The value of the pointer cannot be changed, 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 ||`const char **pp`||The `char` pointed to by `*pp` cannot be changed through it.||
    11 ||`char *const *pp`||The `char *` pointed to by `pp` cannot be changed through it.||
    12 ||`char **const pp`||`pp` cannot be changed.||
    13 ||`const char *const *pp`||The `char *` cannot be changed through `pp`, and the `char` cannot be changed through `*pp`.||
    14 ||`const char *const *const pp`||All of the above.||
     10||`const char **pp;`||The `char` pointed to by `*pp` cannot be changed through it.||
     11||`char *const *pp;`||The `char *` pointed to by `pp` cannot be changed through it.||
     12||`char **const pp;`||`pp` cannot be changed.||
     13||`const char *const *pp;`||The `char *` cannot be changed through `pp`, and the `char` cannot be changed through `*pp`.||
     14||`const char *const *const pp;`||All of the above.||
    1515
    1616`foo *` may be implicitly converted to `const foo *`, but not the other way around.