Question: UESTION 3 Create a user-defined function that takes two integer parameters, using pass-by-reference. The function will compare the two numbers and set the larger number
UESTION 3 Create a user-defined function that takes two integer parameters, using pass-by-reference. The function will compare the two numbers and set the larger number variable with the value of the smaller number, and the smaller number variable with the difference of the original two numbers. For example: n1=10, n2=6 After the function call, n1=6, n2 = 4; TT T Arial3 (12pt) T E - S 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
