单项选择题
有以下程序: 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
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
某二叉树中有n个度为2的结点,则该二叉树中的叶子结点数为【 】。
A.n+l
B.n-1
C.2n
D.n/2
点击查看答案&解析
单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
点击查看答案
相关试题
数据管理技术发展过程经过人工管理、文件系...
以下程序的运行结果是【 】#include <s...
以下程序从终端读入数据到数组中,统计其中...
以下程序运行后的输出结果是【 】。main ...
【 】的任务是诊断和改正程序中的错误。