Inlining versus Macro Expansion
Review Questions
1. |
What is the difference between a function declaration and a function definition? |
2. |
Why are default argument specifiers in the declaration but not the definition? |
3. |
For overloading arithmetic symbols (+, -, *. /) on Fraction objects, which is better, member functions or non-member global operators? |
4. |
Explain the difference between pass-by-value and pass-by-reference. Why would you use one instead of the other? |
5. |
Explain the difference between preprocessor macros and inline functions. |