Study Notes Lesson Seven C ++ default function arguments

Study Notes content from: Ditai Software College Tangzuo Lin teacher's video, I appreciate your guidance

1. When the function parameters to the default values, if the declarations and definitions separate, to the time that statement and define default parameter values must match
the default value of 2. The parameters must be provided from right to left, from right to left because the stack
3. C ++ may be provided as a function of positional parameters. Placeholder parameters only parameter type declaration, but did not declare the parameter name. In general, the positional parameters can not be used within a function body
4. In C ++, void func (void); equivalent to void func (); not equivalent in C
5 and positional parameters default occurs It is written for compatibility with non-standard C language

Published 15 original articles · won praise 0 · Views 104

Guess you like

Origin blog.csdn.net/u012321968/article/details/104450096