单项选择题

函数int test(int a,int b=1,int c:0),下列调用不合法的个数是( )。     test(0); test(0,0); test( ); test(0,0,0);

A.0
B.1
C.2
D.3
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序错误的语句是( )。 ①# include <iostream.h>② void main( )③ {④ int * p=new int[1];⑤ p=9;⑥ cout << * p << endl; ⑦ delete [ ]p;⑧ }
A. Value
B. Visible
C. Default
D. Enabled
单项选择题
如果友元函数重载一个运算符时,其参数表中没有任何参数则说明该运算符是( )。
A.一元运算符
B.二元运算符
C.选项A)和选项B)都可能
D.重载错误
相关试题
  • 下面程序的结果是( )。#include<iostr...
  • 有如下程序#include<iostream.h>voidma...
  • 下面程序的运行结果为( )。# include...
  • 下面程序的运行结果是( )。#include<i...