I am just trying to understand the pointers concept in C and came across this error. I got the "lvalue required as increment operand" error for the following code. Please help me understand what is wrong.
#include<stdio.h>
int main()
{
char *s[] = {"black", "white", "pink", "violet"};
++s; //error at this line
printf("%s\n", *s);
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s", **p+1);
return 0;
}