Are the following assignments valid? Or will any of these create problems. Please suggest.
const char * c1;
const char * c2;
const char * c3;
char * c4;
All are valid statements as along you don't dereference them because all the pointers are left uninitalized or aren't pointing to any valid memory locations.
And they are valid because pointer is not constant but the value pointed by the pointer is constant. So, pointers here are reassignable to point to a different location.