以下函数值的类型是() fun(floatx) {floaty; y=3*x-4: returny;}
第1题:
以下函数值的返回值类型是( )。 fun(floatx) {floaty; y=3*x-4; returny; }
A.int
B.不确定
C.void
D.float
第2题:
以下函数值的类型是 ( ) fun (float x) { float y; y=3 * x-4; return y; }
A.int
B.不确定
C.void
D.float
第3题:
以下函数值的类型是______。 fun(floatx) { float y; y=3*x-4; return y; }
A.int
B.不确定
C.void
D.float
第4题:
有下列函数定义: fun(float h) { printf("%f,%f\n",h,h*h);) 该函数的类型是( )。
A.int类型
B.float类型
C.void类型
D.函数无类型说明,定义有错
第5题:
l设已有定义:floatx;,则以下对指针变量p进行定义且赋初值的语句中正确的是( )。
A.float*p=&x;
B.int*p-(float)x;
C.float p=&x;
D.float*p=1024;
第6题:
以下程序的输出结果是 void fun(float*p1,float*p2,float*s) { s=(float*)calloc(1,sizeof(float)); *s=*p1+*p2++;} main() { float a[2]={1.1,2.2},b[2]={10.0,20.0},*s=a; fun(a,b,s); printf("%5.2f\n",*s);}
A.11.1
B.12
C.21.1
D.1.1
第7题:
下列函数的定义,正确的是( )。
A.float sum(x,y) {float x,y;……}
B.float sum(float x,float y); {……}
C.float sum(float x,float y) {……}
D.float sum(floatx,floaty) {……}
第8题:
下列重载函数中,正确的是( )。
A.void fun(int a,float b);void fun(int C,float d)
B.void fun(int a,float b);void fun(float a,int b)
C.float fun(int a,float b);int fun(int b,float a)
D.int fun(int a,int b);float fun(int a,int b)
第9题:
若下列各选项中所有变量已正确定义,函数fun通过return语句返回一个函数值,以下选项中错误的程序是( )。
A.main( ) {...... x = fun(2,10);......} float fun(int a, int b){......}
B.float fun( int a,int b){......} main( ) {......x = fun(i,j);......}
C.float fun(int, int); main( ) {......x=fun(2,10);......} float fun(iht a, int b){......}
D.main( ) { float fun(int i, int j); ...... x = fun(i,j);......} float fun(int a,int b) {......}
第10题:
把x、y定义成float类型变量,并赋同一初值3.14的定义语句是()
第11题:
void fun(int a,float b);void fun(int C,float d)
void fun(int a,float b);void fun(float a,int b)
float fun(int a,float b);int fun(int b,float a)
int fun(int a,int b);float fun(int a,int b)
第12题:
int fun(int a, float b) { } float fun(int a, float b) { }
float fun(int a, float b) { } float fun(int x, float y) { }
float fun(float a) { } float fun(float a, float b) { }
float fun1(int a, float b) { } float fun2(int a, float b) { }
第13题:
A.int*p=(floatx)
B.floatp=&x
C.float*p=1024
D.float*P=&x
第14题:
下列函数值的类型是( )。 fun(double x) { float y; y=3*x-4; return y; }
A.int
B.不确定
C.void
D.float
第15题:
下列函数值的类型是( )。
fun(doublex)
{ float y;
y=3*x-4;
return y;
}
A.int
B.不确定
C.void
D.float
第16题:
下列函数的类型是( )。
fun(double x) { float y;y=3*x-4;return y; }
A.int
B.不确定
C.void
D.float
第17题:
有下列函数定义: fun(float h) { printf("%f,%f\n",h,h*h);) 该函数的类型是( )。
A.int类型
B.float类型
C.void类型
D.函数无类型说明,定义有错
第18题:
若各选项中所有变量已正确定义,函数fun中通过return语句返回一个函数值,以下选项中错误的程序是______。
A.mam() {…… x=fun(2,10); ……} fioat fun(int a,int b) { ……}
B.float fun (int a,int b) {……} main() {…… x=fun(i,j); ……}
C.float fun (int int); main() {…… x=fun(2,10); ……} float fun (int a,int b){ ……}
D.main() { float fun (int i, int j); …… x=fun(i,j); ……} float fun (int a,int b){ ……}
第19题:
下列函数的类型是( )。 fun(double x) { float y; y=3*x-4: return y; }
A. int
B.不确定
C.void
D.float
第20题:
设函数fun的定义形式为 void fun(char ch, float x) { … } 则以下对函九fun的调节器用语句中,正确是
A.fun("abc",3.0);
B.t=fun('D',16.5);
C.fun('65',2.8):
D.fun(32,32);
第21题:
下面的方法重载,正确的是()。
第22题:
要为float类型变量x、y、z赋同一初值3.14,下列说明语句哪一个是正确的()。
第23题:
int
不确定
void
float