Monday, January 12, 2009

const char *a;======> pointer to a const char type. It means value at address stored in pointer can not be changed.
char* const a;
char const *a;

In this const is applied to closest next symbol.
For example in "const char *a", const applies to char * while in char * const a , const applies to a.

No comments:

Post a Comment