问题
填空题
有以下程序 #include<stdio.h> typedef struct {int num;double s;}REC; void funl(REC x){x.num=23;x.s=88.5;} main() { REC a=<16,90.0}; funl (A) ; printf("%d\n",a.mum); } 程序运行后的输出结果是______。
答案
参考答案:P
解析: 调用函数采用传值,所以参数中对于结构体中成员的赋值,并能改变实参中成员的值,所以还是16。