i think there will be warning due to inner structure is not declaring variable. Inner structure must be like: struct yy { char s; struct xx *p; }a;
On Jul 27, 9:22 pm, Aman Goyal <aman.goya...@gmail.com> wrote: > #include‹stdio.h› > main() > { > struct xx > { > int x; > struct yy > { > char s; > struct xx *p; > > }; > struct yy *q; > }; > } > > ouput: compiler error. > > Any logical reasons? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.