Code:
char *s="george"; printf(" from s %s\n",s); s[0]='k'; printf(" from new s %s\n",s); char p[]="john"; printf("from p %s\n",p); p[2]='k'; printf(" from new p %s\n",p);
plss explain me how dis actually works inside the memory?
1)s is just a pointer holding the adress of 'george' ryt?so if i do s[2]='k' y does it NOT change?
Comment