const char *
2 posters
const char *
Can somebody differentiate char* const and const char* ?
Maithreyi- Posts : 76
Points : 142
Join date : 2010-03-03
Age : 36
Location : Haldia
Re: const char *
char* const c -> "Pointer c" is constant
pointer value is constant and you cant change it
const char* c -> pointer to a "constant string c"
the string is constant and you cant change it
pointer value is constant and you cant change it
const char* c -> pointer to a "constant string c"
the string is constant and you cant change it
Mahee- Posts : 29
Points : 233
Join date : 2010-03-03
Location : Haldia
Permissions in this forum:
You cannot reply to topics in this forum
|
|