[ fromfile: functions-questions.xml id: functions-questions ]
What is the difference between a function declaration and a function definition?
Why are default argument specifiers in the declaration but not the definition?
Explain why is it an error to have two functions in the same scope with the same signature but with different return types.
For overloading arithmetic symbols (+ - * /
) on Fraction
objects, which is preferred, member functions or nonmember global operators? Explain your answer.
For overloading left-modifying operators such as =
and +=
, which is preferred, member function operators or (nonmember) global operators?
Explain the difference between pass-by-value and pass-by-reference. Why would you use one instead of the other?
Explain the difference between preprocessor macros and inline functions.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |