Question: a. Create a new program called Sum.c, and type in the following two functions. b. Write a few lines in main() to test these functions.



a. Create a new program called Sum.c, and type in the following two functions.
b. Write a few lines in main() to test these functions. Invoke them a couple of times, with a few different values, and see what you get. By some combination of testing and examination of the code, figure out what these functions do, and give them more meaningful names. Add comments that describe their function abstractly.
c. Add a prinf statement to the beginning of both functions so that they print their arguments each time they are invoked. This is a useful technique for debugging recursive programs, since it demonstrates the flow of execution.
Exercise 5.3 a. Create a new program called Sum.c, and type in the following two functions. int FunctionOne (int m, int n) if (m- n) return n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
