单选题 C语言
题号 #2328664

若变量已正确定义,有以下程序段
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);
其输出结果是(  )

进入在线模考

参考答案

B

答案解析

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); 3,5,3

你可能感兴趣的试题

A.调用printf函数时,必须要有输出项
B.使用putchar函数时,必须在之前包含头文件stdio.h
C.在C语言中,整数可以以十进制、八进制或十六进制的形式输出
D.使用putchar函数可以不要输出项
A.0           
B.70          
C.35          
D.53
找试题 · 找答案 · 找资料 在线模考