单项选择题

假设函数fun已经定义,其原型为“void fun(int a,int b—7,char*p="**");”下列函数调用中错误的是( )。

A.fun(5)
B.fun(5,8)
C.fun(6,"##")
D.fun(0,0,"==")
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #inc1ude<iostream> using namespace std; void function2(int n); void functionl(int n){ if(n<=0)return; function2(n—2); ) void function2 (int n){ if(n<=0)return; functionl(n—1); } int main(){ functionl(5); return 0; } 下列关于程序运行情况的描述中,正确的是( )。
A.function1运行1次,function2运行2次
B.function1运行2次,function2运行1次
C.function1运行2次,function2运行3次
D.function1运行2次,function2运行2次
单项选择题
下列关于函数的描述中,错误的是( )。
A.函数可以没有返回值
B.函数可以没有参数
C.函数可以是一个类的成员
D.函数不能被定义为模板
相关试题
  • 计算斐波那契数列第n项的函数定义如下: i...
  • 为了提高函数调用的实际运行速度,可以将较...
  • 为了取代C中带参数的宏,在C++中使用( ...
  • 下列有关内联函数的叙述中,正确的是( )。
  • 已知函数fun的原型为 int fun (int, ...