1.

Const Char *p , Char Const *p What Is The Difference Between The Above Two?

Answer»
  1. const char *p - POINTER to a CONSTANT char ('p' isn't MODIFIABLE but the pointer is)
  2. char const *p - Also pointer to a constant Char 

However if you had something like:

char * const p - This DECLARES 'p' to be a constant pointer to an char. (Char p is modifiable but the pointer isn't)

However if you had something like:

char * const p - This declares 'p' to be a constant pointer to an char. (Char p is modifiable but the pointer isn't)



Discussion

No Comment Found