char *pointer = “abc” sets pointer to the address of the “abc” string (which may be stored in read-only memory and thus unchangeable)…what does this mean…explain in detail please
Characters and pointers
Hello @kani001
“abc” <- the address returned by string is of type const char * (note const behind char *) ie u can read the string but u cannot modify it ( thats why they have written read-only memory and thus unchangeable) .
if u want to modify it then u need to do expicit typecasting from const char * to char *