问题
单项选择题
已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是( )。
A.char test(int,int,int);
B.double test(int,int,double);
C.int test(int,int,int=0);
D.float test(int,int,float=3.5F);
答案
参考答案:B
已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是( )。
A.char test(int,int,int);
B.double test(int,int,double);
C.int test(int,int,int=0);
D.float test(int,int,float=3.5F);
参考答案:B