单项选择题

下列程序的运行结果为( )。
#include <stdio.h>
main()
stmct date
int year,month,day;
today;
printf("%d\n",sizeof(struct date));

A.8
B.6
C.10
D.12
<上一题 目录 下一题>
热门 试题

单项选择题
要求通过while循环不断读入字符,当读入字母N时结束循环。若变量已正确定义,下列正确的程序段是( )。
A.while ((ch=getchar())!='N') printf("%c", ch);
B.while (ch=getchar()!='N') printf("%c", ch);
C.while (ch=getchar()=='N') printf("%c", ch);
D.while ((ch=getchar())=='N') printf("%c", ch);
单项选择题
不能与do…while(exp)语句中的(exp)等价的表达式是( )。
A.(!exp ==O)
B.(exp>0 || exp<0)
C.(exp ==0)
D.(exp!=O)
相关试题
  • 设有下列的程序段: char str[]= Hel...
  • 下列程序的输出结果是______。 main...
  • 下列程序的输出结果是______. #in...
  • 若有定义:int a[4][4]=l,2,3...
  • 在循环中,continue语句与break语句的区别...