Most languages with default argument values only allow constants or other values that can be determined at parse-time.
大多数支持默认参数的语言只允许编译时能决定的常量或者值作为默认值。
A default argument doesn't change the number of parameters.
默认实参并没有改变形参的个数。
The compiler will automatically supply the default argument value for the omitted argument.
编译器自动将默认实参的值提供给被忽略的实参。
If a default argument is provided in the parameter list of a function definition, the default argument is available only for function calls in the source file that contains the function definition.
如果在函数定义的形参表中提供默认实参,那么只有在包含该函数定义的源文件中调用该函数时,默认实参才是有效的。
If a default argument is provided in the parameter list of a function definition, the default argument is available only for function calls in the source file that contains the function definition.
如果在函数定义的形参表中提供默认实参,那么只有在包含该函数定义的源文件中调用该函数时,默认实参才是有效的。
应用推荐