I am struggling with a problem in C. The problem is how to get pointer to an element in array if I know the pointer to the previous element in the array?
Suppose I have a string
s = "Hello World"
and I have a pointer to 'o' in the string
char *p = strchr(s, 'o')
How do I get pointer to o given I just know p?