+ 3

Can someone help me with the output of this code?Why we have *TEST PP Z rincipal* in the output?

#include <stdio.h> char *c[] = {"AUTPP", "principal", "TEST", "QUIZ"}; char **cp[] = {c+3, c+2, c+1, c}; char ***cpp = cp; int main() { printf("%s ", **++cpp); printf("%s ", *--*++cpp+3); printf("%s ", *cpp[-2]+3); printf("%s ", cpp[-1][-1]+1); return 0; }

22nd May 2020, 11:19 PM
Nika Soltani Tehrani
Nika Soltani Tehrani - avatar
4 odpowiedzi
25th May 2020, 4:15 AM
Ahlin Chan
Ahlin Chan - avatar
+ 2
Oh thanks Mohamed ELomari but how did you search for this question?
23rd May 2020, 12:57 AM
Nika Soltani Tehrani
Nika Soltani Tehrani - avatar
+ 2
Ahlin Chan yaeh thanks A friend mentioned that too Thank you🙏
25th May 2020, 4:46 AM
Nika Soltani Tehrani
Nika Soltani Tehrani - avatar