69,336
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main(void)
{
union
{
float f;
int i;
} test;
test.f = 3.15;
printf("%d\n", test.i);
return 0;
}
#include <stdio.h>
int main(void)
{
union
{
char c;
int i;
} test;
test.c = 'a';
printf("%d\n", test.i);
return 0;
}