Question: How did you modify the divisionCallByReference function such that whenever NULL value is used as its first argument during the function call from main function,


How did you modify the divisionCallByReference function such that whenever "NULL" value is used as its first argument during the function call from main function, this function displays a meaningful error message and the program exits normally? Make the following change in the program named divisionCallByReference.c When you call the divisionCallByReference function from the main function, set the first argument as "NULL": divisionCallByReference (NULL, numerator, denominator): Compile and run the program. What output do you see? Answer question 3 in your worksheet. Then, modify the divisionCallByReference function such that whenever "NULL" value is used as its first argument during the function call from main function, this function displays a meaningful error message and the program exits normally. Answer question 4 in your worksheet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
