0

Can anyone explain this code snippet?

#include <stdio.h> int main() { struct sl{ char *z; int i; struct sl *p; }; static struct sl a[] = { {"Nagpur",1,a+1}, {"Raipur",2,a+2}, {"Kanupr",3,a} }; struct sl *ptr = a; printf("\n%s", ++(ptr->z)); printf("\n%s", a[(++ptr)->i].z); printf("\n%s", a[--(ptr->p->i)].z); return 0; }

13th Feb 2020, 7:07 PM
Preity
Preity - avatar
1 Respuesta
+ 1
Thanks ~ swim ~
13th Feb 2020, 7:46 PM
Preity
Preity - avatar