单项选择题

若变量已正确定义,有以下程序段:
int a=3,b=5,C=7;
if(a>b) a=b;c=a;
if(c!=a) c=b;
printf("%d, %d, %d\n",a,b,c);
其输出结果是()

A、 程序段有语法错误
B、 3,5,3
C、 3,5,5
D、 3,5,7

<上一题 目录 下一题>
热门 试题

单项选择题
以下选项中不属于字符常量的是()

A、 "E"
B、 'E'
C、 '\xCC'
D、 '\072'

单项选择题
若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是()

A、 switch(x)
case 1.0: printf("*\n");
case 2.0: printf("**\n");
B、 switch (int)x);
case1: printf("*\n");
case 2: printf("**\n");
C、 switch(a+b)
case 1: printf("*\n");
case 2+1: printf("**\n");
D、 switch(a+b)
case 1: printf("*\n");
case c: printf("**\n");

相关试题
  • 以下程序运行后的输出结果是() #includ...
  • 以下程序的运行结果是() #include <s...
  • 在C语言中,变量的隐含存储类别是()
  • 以下选项中,能定义s为合法的结构体变量的...
  • 以下程序的输出结果是() #include <s...