单项选择题

有如下程序 float fun (int x,int y){return(x+y);} main() { int a=2,b=5,c=8; printf("%3.Of\n",fun((int)fun(a+c,B) ,(a-C) )) } 程序运行后的输出结果为_______。

A.编译出错
B.9
C.21
D.9.0
<上一题 目录 下一题>
热门 试题

单项选择题
下面能正确定义数组,并正确赋值的语句是_______。
A.int N=5,b
B.int a[1][2]={{1},{3}}
C.int c[2][]={{1,2},{3,4}}
D.int d[3][2]={{1,2},{34}}
单项选择题
下列选项中不能正确定义结构体的是_______。
A.typedef struct
B.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;
C.struct color
D.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;
相关试题
  • 以下函数用于求出一个2×4矩阵中的最大元...
  • 下列程序的运行结果是 【16】 。main(...
  • 在对文件进行操作的过程中,若要求文件的位...
  • 以下程序运行后的输出结果是 【15】 。...
  • 函数mycmp(char*s,char*t)的功能提比...