网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面各被调用函数首部书写正确的是( )
A.void sub(float x;float y);
B.void sub(float x,y)
C.void sub(float x,float y)
D.void sub(float x,float y);
参考答案
更多 “ 下面各被调用函数首部书写正确的是( )A.void sub(float x;float y);B.void sub(float x,y)C.void sub(float x,float y)D.void sub(float x,float y); ” 相关考题
考题
以下4个程序中,不能实现两个实参值进行交换的是 ( )。A.void swap (float *p, float *q) { float *t ,a; t = a; t = p; *p = *q; *q = *t; } void main () { float x = 8.0;y = 9.0; swap (x, y); cout<<x<<", "<<y<<B.void swap (float *p, float *q) { float a; a = *p; *p = *q; *q = a; } void main() { float x = 8.0;y = 9.0; swap (x, y); cout<<x<<", "<<y<<end1;C.void swap (float *p, float *q) { float x; x = *p; *p = *q; *q = x; } void main() { float a,b.; *a = 8.0;*b = 9.0; swap (a, b) ;D.void swap (float p, float q) { float a; a = p; p = q; q = a; } void main() { float a = 8.0,b = 9.0; swap (a,b); cout<<x<<", "<<y<<
考题
4、下面哪个是合于语法的f (x) = 3x+1的定义,其中x是实数。(可以选择不同的函数名)A.f Float -> Float f (x) = 3x+1B.f :: Float -> Float f (x) = 3x+1C.F :: Float -> Float F (x) = 3x+1D.f :: Float -> Float f X = 3*X+1E.myf :: Float -> Float myf x = 3*x + 1
考题
6、下列函数的声明正确的是____A.float sum(float x,y) {.......}B.flaot sum(float,float );C.float sum(x,y)D.float sum(floatx,floaty) {.......}
考题
9、若x,y均为int变量,z为float变量,以下不合法的scanf函数调用为()。A.scanf("%d,%x,%e",x,y,z);B.scanf("%2d%d,%f",x,y,z);C.scanf("%x%*d %o",x,y);D.scanf("%x%d%6.2f",x,y,z);
热门标签
最新试卷