问题
单项选择题
下面程序运行后的输出结果是______。
struct abc
int a,b,c;
main()
struct abc s [2]=1,2,3,4,5,6;
int t=-s[0].a+s[1].b;
printf("%d\n",t);
答案
参考答案:B
解析:[评析] 在main函数中定义了一个struct abc类型的数组,同时分别利用{1,2,3}及(4,5,6