I compiled the following code successfully but its not running :
I changed the value pointer p refers to, so shouldn't the address stored in it change automatically as well or the character stored at the address, i.e., 'H' be replaced by 'b'? Why is the code not running?Code:void func2() { char c = 'b'; char *p = "Hello"; *p = c; printf("%c\n", *p); }