Question: 1. Why do we use parameters to a function? 2. Why don't we just pass all parameters by reference so we can always have input
1. Why do we use parameters to a function? 2. Why don't we just pass all parameters by reference so we can always have input AND output parameters? Explain. 3. Why would you choose to use a parameter to return a value from a void function as opposed to using an RETURN statement and a non-void function? 4. When doing top-down programming, which is more likely to be needed, a driver or a stub? 5. Why do we have to use indirect references in our programs? Explain. 6. What is the difference between the & operator and the * operator? How are they related? 7. Would you unit test a driver? Why or why not? 8. Explain why the memory allocation differs when a function is invoked with an input parameter verses an output parameter.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
