Computer Science, asked by monirul8510, 1 year ago

What will be the output of the program ? #include int main() { static char *s[] = {"black", "white", "pink", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s", **p+1); return 0; }?

Answers

Answered by Anonymous
1

Hi,

Your code is giving following error

main.cpp:9:10: error: #include expects "FILENAME" or

#include int main() { static char *s[] = {"black", "white", "pink", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s", **p+1); return 0; }

Similar questions