...
Code Block | ||
---|---|---|
| ||
const int max = 15; int a[max]; /* invalid declaration outside of a function */ const int *p; p = &max; /* legala toconst-qualified takeobject thecan addresshave ofits a const-qualified objectaddress taken */ |
Most C compilers allocate memory for const
-qualified objects.
...