写出下面程序执行后的运行结果。 include <stdio.h> struct { int a,b; union {int M,N;char ch[10];} in; } Q,*p=&Q; int main() { Q.a=3;Q.b=6; Q.in.M=(*p).a+(*p).b;Q.in.N=p->a*p->b; printf("%d,%d,%d",sizeof(Q.in),Q.in.M,Q.in.N); return 0; }

时间:2024-05-03 10:28:04

相似题目