当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下列程序的输出结果是()struct abc{ int a b c;};main(){ struct abc s[2]={{1 2 3} {4 5 6}};in


下列程序的输出结果是() struct abc { int a,b,c;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d ",t); }

A.3

B.4

C.5

D.6

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 以下程序的输出结果是 include struct st { int x;int *y;}*p; int dt[4]={10,2

  • 以下程序输出结果是()。 struct stu {int x; int *y; }*p; int dt[4]={10,20,30,40}; struct stu

  • 下面程序的输出结果为()。struct st { int x; int*y; } *p; int dt[4]={10,20,30,40}; struct st

  • 下面程序运行后的输出结果是()。struct abc{int a,b,c;}main(){struct abc s[2]={{1,2,3},{4,5,6" />