Why is my union's size bigger than I expected?

前端 未结 5 1684
滥情空心
滥情空心 2021-01-18 06:13

When I print the size of a union like this:

union u {
  char c[5];
  int i;
} un;

using this:

int _tmain(int argc, _TCHAR*          


        
5条回答
提交回复
热议问题