请写出输出结果:
1、
struct XY{
int x;
int y;
};
int main(int argc, char* argv[])
{
int a[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
struct XY *p1 = (struct XY *) a;
struct XY *p2 = p1 + 4;
printf("%d/t%d", p2->x, p2->y);
return 0;
}
2、
union XYZ{
struct _XYZ {
char x:2;
char y:3;
char z:3;
} _xyz;
char _char;
};
int main(int argc, char* argv[])
{
union XYZ xyz;
xyz._char = 100;
printf("/n%d/t%d/t%d", xyz._xyz.x, xyz._xyz.y, xyz._xyz.z);
return 0;
}