I was looking at tutorials for C and pointers on the internet and found a debugging example and am wondering how to fix this block of code? I have been looking for a while and can't find out how to make it work. I want to replace the 'i'
in "Harris"
with an "a"
.
char * ptr = (char *) "Harris";
ptr[4]="a";