问题

以下程序运行后的输出结果是 【 8 】 。

main()

{ int x,a=1,b=2,c=3,d=4;

x=(a<b)?a:b; x=(x<c)?x:c; x=(d>x) ? x : d;

printf("%d\n",x);

}

参考答案
您可能感兴趣的试题
  • 有以下程序,若运行时从键盘输入: 18,11 ,则程序的输出结果是 【 9 】 。main(){ int a,b;printf(Enter a,b:); scanf(%d,%d,&
  • 以下程序的功能是:将输入的正整数按逆序输出。例如:若输入 135 则输出 531 。请填空。#include main(){ int n,s;printf(Enter a numb
  • 以下程序中,函数 fun 的功能是计算 x 2-2x+6 ,主函数中将调用 fun 函数计算:y1=(x+8) 2-2 (x+8)+6y2=sin 2(x)-2sin(x)+6请填空。#include
  • 下列程序中的函数 strcpy2() 实现字符串两次复制 , 即将 t 所指字符串复制两次到 s 所指内存空间中 ,合并形成一个新的字符串。例如,若 t 所指字符串为 efgh ,调用 strcpy2
  • 下面程序的运行结果是: 【 17 】 。#include int f(int a[],int n){ if(n>1)return a[0] + f(a+1, n-1);elseret
  • 下面程序由两个源文件 t4.h 和 t4.c 组成,程序编译运行的结果是 【 18 】 。t4.h 的源程序为:#define N 10#define f2(x) (x*N)t4.c 的源程序为:#i