Code:
#include int main() { char *s[]={"codeforces","russia","contest"}; char **p; p = s; printf("%s ",++*p); printf("%s ",*p++); printf("%s ",++*p); scanf("%*d"); return 0; }Output: odeforces odeforces ussia
Please someone explain the output( 2nd and 3rd string).
2: *(p++)
p={"russia","contest"}
3: ++(*p)
p={"ussia","contest"
so, p = { "russia", "contest"}
now how using * will print "odeforces" ;