问题 单项选择题

下列函数参数默认值定义错误的是( )。

A.Fun(int x,int y=0)

B.Fun(int x=100)

C.Fun(int x=0,int

D.Fun(int x=f())(假定函数f()已经定义)

答案

参考答案:D

问答题 简答题
单项选择题