这段代码编译后被金山毒霸监测为病毒
/*这段代码编译后被金山毒霸监测为病毒
DEV-C++ 编译
*/
#include <stdio.h>
struct x
{
int a;
union
{
int b;
double c;
};
};
struct y
{
int a;
union
{
int b;
double c;
} d;
};
struct z
{
int a;
union b
{
int c;
double d;
};
};
typedef struct x x;
typedef struct y y;
typedef struct z z;
int main(void)
{
printf("x = %u, y = %u, z = %u",
sizeof(x), sizeof(y), sizeof(z)
);
getchar();
return 0;
}
/* */