Answers/Solutions to Exercises in Chapter 5, Exercise 9

E9: Which of the calling methods discussed in the chapter are relevant for C? Which ones are relevant for C++?

A9: For C, only calling by value is relevant for function calls and calling by name is relevant for the expansion of macros by the preprocessor and inlining. For C++, calling by value and calling by reference are relevant for function calls, while calling by name is relevant for macro expansion by the preprocessor and inlining.

Back to Answers/Solutions Index                          Back to Answers/Solutions for Chapter 5 Index