Hi Keith,

> conventionally:
>
>   const int foo;
>
> is more common than:
>
>   int const foo;

Agreed.  Though that convention started before all the other bells and
whistles were added.

>   const char *foo;

foo is a pointer to a char that's const.

>   char const *foo;

foo is a pointer to a const char.

> (The former declares a mutable pointer to an immutable C-string;

Both the above two.

> the latter is an immutable pointer to a mutable C-string).

    char * const foo;

foo is a const pointer to char.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

Reply via email to