【答案】有如下程序: #include <stdio.h> void fun(int x,int y) { int

返回首页智慧树时间:2022-11-15 19:18
题目 / 答案提交正确答案

有如下程序: #include <stdio.h> void fun(int x,int y) { int t; if(x>y) {t=x;x=y;y=t;} } int main(void) { int a=4,b=7,c=5; fun(a,b);fun(a,c);fun(b,c); printf(“%d,%d,%d ”,a,b,c); return 0; } 它的输出结果是()。

A.4,5,7

B.4,7,5

C.7,5,4

D.7,4,5

正确答案:B

本文链接:https://www.oyuuu.com/Ti/ZhiHuiShu/352526.html

关键字  浏览量:
上一篇:有如下程序: #include <stdio.h> fun(int a) { auto int b=0; s
下一篇:当全局变量和函数内部的局部变量同名时,在函数内部()。
相关问题
  • 【智慧树】若某端口定义为“CQ: OUT STD_LOGIC_VECTOR(3 DOWNTO 0);”,则CQ的数据类型为()
  • 【智慧树】STD_LOGIC_UNSIGNED和STD_LOGIC_SIGNED程序包的区别是,STD_LOGIC_SIGNED中
  • 【智慧树】程序包()重载了可用于INTEGER型及STD_LOGIC和STD_ LOGIC_VECTOR型混合运算的运算符,并定义
  • 【智慧树】下列程序的运行结果是()。 #include <stdio.h> void op(int (*p)[3])
  • 【智慧树】以下程序运行时,若输入5,则程序的输出结果是()。 #include <stdio.h> int fun(i
  • 【智慧树】若有以下程序: #include <stdio.h> void f(int *q,int n) {int i
  • 【智慧树】以下程序运行时,若输入ab012kd99pk8,则程序的输出结果是()。 #include <stdio.h>
  • 【智慧树】若有以下程序: #include <stdio.h> int fun(int x) { if(x>10