+ 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; }
4 Antworten
+ 5
LOL, you just modified the code in https://stackoverflow.com/questions/30292412/output-of-c-program-with-complex-pointer-arithmetic
+ 2
Oh thanks Mohamed ELomari but how did you search for this question?
+ 2
Ahlin Chan yaeh thanks
A friend mentioned that too
Thank you🙏