#include <stdio.h>
increment(char *c)
{
c++;
c++;
printf("works 'n' %c \n", *c);
}
int main()
{
char *p;
char mon[10] = "Monday";
p = mon;
increment(p);
printf("expecting 'n' %c \n", *p);
return 0;
}
If character buffer pointer incremented in other function it will not reflect after coming out of the function.