考虑函数原型void test (int a,int b = 7,char c=’ *’),下面函数调用中,属于不合
法调用的是( )
A. test(5); B.test(5,8); C. test(6,’#’) D.test(0,0,‘ *’)
虽然上题选c但vs不报错
缺省参数和重载不能同时出现
考虑函数原型void test (int a,int b = 7,char c=’ *’),下面函数调用中,属于不合
法调用的是( )
A. test(5); B.test(5,8); C. test(6,’#’) D.test(0,0,‘ *’)
虽然上题选c但vs不报错
缺省参数和重载不能同时出现