I am trying to learn C with The C programming Language by K&R. I am trying to write a the strcat() program using pointers.
The C programming Language by K&R
strcat()
char
In this line:
while(*s++ = *t++);
you dereference s which points to one-past-the-end of the char array "stack". This causes segmentation fault error.
s
"stack"
segmentation fault