Why is there a contradiction in the output by two programs written below (Unions in C)?

后端 未结 0 385
梦如初夏
梦如初夏 2021-01-22 11:19

Here goes the first code:

#include

int main(){

union var{

int a;

int b;

};

union var v;

v.b=10;

v.a

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