yes I got it but can it be issue for compilation error?. if I declare const char than I will not get
any compiler error. or if i do not declare than i will encounter will compiler error.
I had understanding that we can not assign new value in the above case (i.e p[2]='s' will compiler
error) but does it also allow char *p?
PiMaster already said that string literals are constant character arrays.
When taking the address of a constant character, you'll get a pointer to a constant character, which you can't assign to a pointer to a non-const character.