I know that it isn't safe to change a pointer's address if it lays on the heap because freeing it later would cause some trouble, but is it safe to do that if the pointer is declared on the stack?
I'm talking about something like this:
char arr[] = "one two three";
arr++;
//or arr--;
I hope I got that right by referring to a char array as a pointer.
See Question&Answers more detail:os