...
const
-qualified objects allows the programmer to take the address of the object.
Code Block |
---|
int const int max = 15; int a[max]; /* invalid declaration outside of a function */ int const int *p; p = &max; /* a const-qualified object can have its address taken */ |
...
Code Block |
---|
enum { max = 15 }; int a[max]; /* OK outside function */ int const int *p; p = &max; /* error: '&' on enum constant */ |
...