GCC Issue with unnammed nested struct in c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

struct xx
{
        int x;
        struct yy *p;
        struct
        {
                int  s;
        };
        struct
        {
                int  s;
        };

};

int main()
{

        struct xx xyz;
        printf("%d",sizeof(xyz));
        return 0;
}

the above code compile well without any warning. Here my question is
1. How can I distinguish  two 's' variable.
2. What is use case.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux