重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 信息管理与信息系统> C语言程序设计
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[单选题]

考虑函数原型void test(int a,int b=7,char="*"),下面的函数调用中,属于不合法调用的是()

A.test(5)

B. test(5,8)

C. test(6,"#")

D. test(0,0,"*")

答案
查看答案
更多“考虑函数原型void test(int a,int b=7,char="*"),下面的函数调用中,属于不合法调用”相关的问题

第1题

考虑函数原型void test(int a,int b=7,char=""),下面的函数调用中,属于不合法调用的是()

A.test(5)

B.test(5,8)

C.test(6,"#")

D.test(0,0,"")

点击查看答案

第2题

下列函数原型中,错误的是()。

A.int fun(int, int);

B.void fun(int x,y);

C.int fun(int x, int y);

D.void fun();

点击查看答案

第3题

对于全局函数int f(void),与其完全等价的函数原型为const int f。()

对于全局函数int f(void),与其完全等价的函数原型为const int f。()

点击查看答案

第4题

已知函数原型:void f(int a, int b=3,char c='*'); 则下面的函数调用中,不合法的调用是()。

A.f(5)

B. f(5,8)

C. f(6, , '#')

D. f(0,0, '#')

点击查看答案

第5题

已知函数原型"void fun(int &a);",则下列关于fun函数的调用形式,正确的是()。

A.int x=3;fun(x);

B.const int y=3;fun(y);

C.fun(3);

D.以上三种都正确

点击查看答案

第6题

已知函数fun的原型是“void fun(int *x, int &y);”,变量v1、v2的定义是“int v1, v2; ”,则下列选项中,对函数fun调用正确的是()。

A. fun(v1,&v2);

B.fun(v1,v2);

C.fun(&v1,v2);

D.fun(&v1,&v2);

点击查看答案

第7题

考虑函数原型voidtest(inta,intb=7,charz=’*’),下面的函数调用中,属于合法调用的是______。

A.test(5)

B.test(5,8)

C.test(6,’#’)

D.test(0,0,’*’)

点击查看答案

第8题

Given the following code: public class Test { void printValue(int m) { do { System.out.println(&q

Given the following code:

public class Test {

void printValue(int m) {

do { System.out.println("The value is"+m);

}

while(--m >10 )

}

public static void main(String arg[]) {

int i=10;

Test t= new Test ();

t.printValue(i) ;

}

}

Which will be output?

A.The value is 8 B.The value is 9

C.The value is 10 D.The value is 11

点击查看答案

第9题

完成求n!的程序 public class Test{ public static void main(String args[]) { factorial(3

完成求n!的程序

public class Test{

public static void main(String args[]) {

factorial(3);

factorial(6);

factorial(9);

}

static (______) factorial(int n) {

long m=1;

for (int x=1;x<=n; (______) )

(______) ;

System.out.println (n+" ! ="+m) ;

}

}

点击查看答案

第10题

已知如下类说明: public class Test { private float f = 1.0f; int m = 12; static int n=1; public static void main(String arg[]) { Test t = new Test(); // 程序代码… } } 如下哪个使用是正确的?()

A.t.f

B.this.n

C.Test.m

D.Test.n

点击查看答案

第11题

在下列选项中,不正确的画数原型格式为()。A. int Function (int a) ;B. void Function (char)

A.A. int Function (int a) ;

B.B. void Function (char);

C.C. int Function(a﹡b);

D.D. void int (double﹡a) ;

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝