单项选择题

有以下程序:
#include <stdio.h>
char fun(char x,char y)
if(x<y) return x;
return y;
main()
int a=’9’,b=’8’,c=’7’;
printf("%c\n",fun(fun(a,b),fun(b,c)));
程序的执行结果是( )。

A.函数调用出错
B.8
C.9
D.7
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> void f(int v, int w) int t; t=v; v=w; w=t; main() int x=1,y=3,z=2; if(x>y) f(x,y); else if(y>z) f(y,z); else f(x,z); printf( %d,%d,%d n ,x,y,z); 执行后的输出结果( )。
A.1,2,3
B.3,1,2
C.1,3,2
D.2,3,1
单项选择题
有以下程序: #include <stdio.h> struct STU char name[10]; int num; ; void f1(struct STU c) struct STU b= LiSiGuo ,2042; c=b; void f2(struct STU *c) struct STU b= SanDan ,2044; *c=b; main() struct STU a= YangSan ,2041, b= WangYin ,2043; f1(
A.; f2(&
B.;
printf("%d%d\n
相关试题
  • 下面程序的运行结果是 【18】 。 #in...
  • 下面rotate函数的功能是:将n行n列的矩阵A...
  • 有以下语句段: int n1=10,n2=2...
  • 以下sstrcpy()函数实现字符串复制,即将t...
  • 以下程序的运行结果是 【17】 。 #in...