Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider (sch jbop) (X_X)@==(Q_Q)@

...

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 */

...