2. Why would you choose to prepare a function that computes a single numeric or character value as a non void function that returns a result through a return statement rather than to prepare a void function with an output parameter?
(ANS)
3. describe the allocation of memory cells when a function is called. What is stored in the function data area for an input parameter? Answer the sane problem for an output parameter.
(ANS)
4. Which of the functions in the following program outline can call the function grumpy? All function prototypes and declarations are shown; only executable statements are omitted.
(ANS)
5. Sketch the data areas of functions main and silly as they appear immediately before the return from the first call to silly in Quick-Check Exercise 8.
(ANS)
6. Present arguments against these statements:
a. It is foolish to use function subprograms because a program written with functions has
many more lines than the same program written without functions.
b. The use of function subprograms leads to more errors because of mistakes in using
argument lists.
(ANS)