A.f1 (a,b):
B.f1(&a,b);
C.fl(a,&b);
D.f1 (&a,&b):
[单选题]有以下程序: int f1(doubleA){return a*a;} int f2(int x,int y) {double a,b; a=f1(x); b=f1(y); return a+b; } main() {double w; w=f2(2.1,4.0); } 程序执行后,变量w的值是( )。A.20.21B.20C.20.0D.0.0
[单选题]有以下程序; int f1(double A) { return a*a; } int f2(double x,double y) { double a, b; a=n(x); b=f1(y); return a+b; } main() { double w; w=f2(1.1,2.0); ┇ } 变量w中的值是( )A.5.21B.5C.5D.0
[单选题]已知一个类A,类A有三个公有成员:void f1(int),void f2(int)和int a;定义指向类A成员函数的指针是( )。A.A*p;B.int A::*Pc=&A.a;C.void(A::*pA) ();D.void(A::*p
[单选题]已知函数f的原型是void f(int *a,long&B) ;,变量v1、v2的定义是: int v1:long v2: 下列调用语句中正确的是A.f(v1,&v2);B.f(v1,v2);C.f(&vl,&v2);D.f(&vl,v2);
[单选题]已知函数f的原形是void f(int * a,long &B);,变量v1、v2的定义是: int v1;long v2; 下列调用语句中正确的是A.f(v1,&v2);B.f(v1,v2);C.f(&v1,&v2);D.f(&v1,v2);
[单选题]有如下头文件: int f1(); static int f2(); class MA{ public: int f3(); static int f4(); };在所描述的函数中,具有隐含的this指针的是A.f1B.f2C.f3D.f4
[单选题]有如下头文件: int f1( ); static int f2( ); class MA{ public: int f3( ); static int f4( ); }; 在所描述的函数中,具有隐含的this指针的是A.f1B.f2C.f3D.f4
[单选题]以下程序的运行结果为______。main(){ int i,f1,f2; f1=f2=1; for(i=0;i<4;i++) { printf("%d %d",f1,f2); f1+=f2; f2+=f1; }}A.1 1 2 3 5 8 13 21B.1 1 2 2 5 5 10 10C.1 2 5 8 9 8 13 21D.0 1 1 2 4 5 15 21
[单选题]有以下程序: main( ) int f1 (int x, int y) { return x>y?x:y; } int f2 (int x, int y) { return x>y?y:x; } main( ) { int a=4,b=3,c=5,d,e,f; d=f1(a,b); d=f1(d,c); e=f2(a,b); e=f2(e,c); f=a+b+c-d-e; printf("%d,%d,%d/n",d,f,e); } 执行后输出的结果是A.3,4,5B.5,3,4C.5,4,
[单选题]下面程序的输出结果是 ( ) main( ) { int i,f1,f2; f1=f2=1; for(i=0;i<4;i+ +) { printf(”%d%d”,f1,f2); f1+ =f2; f2+ =f1; } }A.1 2 3 4 5 6 7 8B.1 1 2 3 5 8 13 21C.1 1 3 5 7 9 11 13D.1 3 5 7 9 11 13 15