单项选择题
有以下程序: int fa(int x) { return x *x;} int fb(int x) { return x *x *x;} int f(int( *f1)( ),int( *f2)( ),int x) { return f2(x)-f1(x);} main( ) { int i; i=f(fa,fb,2);printf("%d\n",i); } 程序运行后的输出结果是( )。
A.-4
B.1
C.4
D.8
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若各选项中所有变量已正确定义,函数fun中通过return语句返回一个函数值,以下选 项中错误的程序是______。
A.
B.
C.
D.
点击查看答案&解析
单项选择题
设有以下语句:typedef struct S{ int g; char h; } T;则下面叙述中正确的是( )。
A.可用S定义结构体变量
B.可以用T定义结构体变量
C.S是struct类型的变量
D.T是struct S类型的变量
点击查看答案
相关试题
有以下程序:main(){ int num[4][...
有以下程序:#include<stdlib.h>struct...
有以下程序:struct STU{ char name[...
软件工程的出现是由于( )。
下列有关数据库的描述,正确的是( )。