阅读下列程序,写出程序运行的输出结果。 void main() {struct {int x;int y;int z; }xyz

阅读下列程序,写出程序运行的输出结果。
void main()
{
struct {int x;int y;int z;
}
xyz={2,4,6},*P=&xyz;
int m;
m=P->x*(*P).y-xyz.z;/*m=2*4-6*/
printf("%d\n",m);
}
【正确答案】:输出结果: 2