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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.