单项选择题

下面程序的功能是将从键盘输入的两个数由小到大排序输出,当输入一对相等数时结束循环。请选择填空。 #include <stdio.h> main() { int a,b,t; scanf("%d%d",&a,&b); while(______) } if(a>b) {t=a;a=b;b=t;} printf("%d,%d\n",a,b); scanf("%d%d",&a,&b); } }

A.! a=b
B.a! =b
C.a= =b
D.a=b
<上一题 目录 下一题>
热门 试题

单项选择题
已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。
A.year=1984;month=11;day=12;
B.year=1984;month=11;day=12;
C.birtyear=1984;birtmonth=11;birtday=12;
D.birtyear=1984;birtmonth=11;birtday=12;
单项选择题
设有以下说明语句: typedef struct { int n; char ch[8]; } PER;则下面叙述中正确的是( )。
A.PER是结构体变量名
B.PER是结构体类型名
C.typedef struct是结构体类型
D.struct是结构体类型名
相关试题
  • 以下程序的输出结果是( )。 #include...
  • 阅读下列程序,当运行程序时,输入asd af...
  • 以下对C语言函数的有关描述中,正确的是(...
  • 设变量n为float类型,m为int类型,则以下能...
  • 对以下说明语句的正确理解是( )。 int...