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

下列程序的运行结果为( )。#include<stdio.h>main{ struct date{int year month day;}today


下列程序的运行结果为()。

#include<stdio.h>

main

{ struct date

{int year,month,day;

}today;

printf("%d\n",sizeof(struct date));

}

A.8

B.6

C.10

D.12

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

参考答案
您可能感兴趣的试题
  • ● 下面程序运行后的输出结果是 (59) 。 #include &lt;stdio.h&gt; #include &lt;string.h&gt; voi

  • 下面程序的运行结果为 #include voidmain() { for(inta=0,x=0;!x&amp;&amp;a&lt;=10;a+

  • 下列程序的运行结果为 #include voidprint(doublea) { cout$amp;<amp;$lt;++a; } voidprint(i

  • 下面程序的运行结果为 include classA { public: A(){cout$amp;

  • 下列程序的运行结果为 #include voidmain() { inta=2: intb=a+1; cout$amp;<amp;$lt; } A.

  • 以下程序的输出结果是【 14 】#include &lt;stdio.h&gt; #include &lt;stdio.h&gt;#include &lt;st