I new to C. I am reading a find-replace algorithm for C and I am a bit confused what the - & + operators do in this code:
-
+
char *re
p is just a pointer - an integer value.
p
The + and - operators work exactly as you'd expect - they increment or decrement the value of the pointer.
If you think of strings as a contiguous array of chars, you're just talking about a location within that string.