didnt get the point that
char *ptr=“abc” sets pointer to the address of the “abc” string (which is unchangable)
String literal initialisation of character array
@soorya19k char * pointer = “abc” sets pointer to the address of the “abc” string (which may be stored in read-only memory and thus unchangeable)
Pointer variables are used to store address. But the same pointer variables has also been assigned an address in memory. This address is said to be unchangeable.
You can’t change the address of a pointer (or of any variable). Once you declare the variable, it’s address is firmly set, once and forever.You can, however, change the value of a pointer.