阅读下列程序,写出运行结果。 #include struct stru {intx;char ch;} main() { str

阅读下列程序,写出运行结果。
#include
struct stru
{intx;char ch;}
main()
{
struct strua={10,'x'};
fun(a);
printf("%d,%c\n",a.x,a.ch);
}
func(struct strub)
{b.x=100;b.ch='n'
}
【正确答案】:在函数中修改型参结构体的值,实参结构体并不受影响。 10,x