Why can I set a var in an union and modify it's value without calling it by the same name

后端 未结 0 1791
执笔经年
执笔经年 2021-01-07 06:37

I have this code in C:

typedef union foo_s {
    long bar;
    struct foo {
        int foo;
    } foo;
} foo_t;

int ma         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题