struct exam{
int a;
char *ch;
}st[]={10,"Testing",11,"Computer",12,"Science",13,"Engineering",14,"Custo",15,"2018"};
int main() {
struct exam *e = st;
printf("%s, ",e++->ch);
++e;
printf("%s, ",++e->ch); // -> operator has higher precedence than the ++ opearator.
printf("%s, ",++e++->ch);
printf("%d, ",e[0].a);
printf("%s",++e->ch);
return 0;
}
OUTPUT : Testing, cience, ience, 13, ngineering
Comments
Post a Comment