Pointers review questions


2. Why would you choose to write 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 write a void function with an output parameter? (ANS) 3. Explain 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 question 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)

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Pointers review questions
Reference No:- TGS095167

Expected delivery within 24 Hours