Question: The following function Maximum returns the maximum of two integers. Rewrite this function to be void function (Pass-by- Reference with Reference Arguments)? How to
The following function Maximum returns the maximum of two integers. Rewrite this function to be void function (Pass-by- Reference with Reference Arguments)? How to call the function? } int Maximum (int a, int b) { if (a>b) return a; else return b; } int main() { int number1, number2; cout < < "Enter the first number: cin>> number1; cout < < "Enter the second number: cin>> number2; "1 cout < < "The maximum is: " < < Maximum(number1, number2) < < endl; return 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
