下面程序的输出结果是( )。 #include <stdlib.h> #include <stdio.h> struct abc { int a; int b; int c; }; int main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); system("pause"); return 0; }
- A. 7
- B. 5
- C. 6
- D. 8
参考答案与解析需登录后查看
搜索本题查看答案 →