I am trying to write a program that takes in a string, reverses the letters in it and displays the result. I have not got it finished but am stuck as I keep getting this error:
The instruction at "0x004010a7" referenced memory at "0x00000065". The memory could not be "read".
this is the code that I have
char string, change;
printf("Write your string: ");
string = getchar();
for(ptr = string; *ptr != NULL; ptr++)
printf(ptr, "%c", ptr);
Can you help?