单选题

下面程序的输出结果是( )。 #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; }

  1. A. 7
  2. B. 5
  3. C. 6
  4. D. 8

参考答案与解析需登录后查看

搜索本题查看答案 →

相似题目