for example:
char stringer[]="hello";
stringer[2]='A';
The above works to change 'l'
to 'A'
. But if I do the following:
char *stringer="hello";
stringer[2]='A';
This doesn’t work, is there a reason for this?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.