Page 1 of 1

Assume the following function is defined: /function that returns the larger of two integers * int max(int numl, int num2

Posted: Sun May 15, 2022 7:54 am
by answerhappygod
Assume The Following Function Is Defined Function That Returns The Larger Of Two Integers Int Max Int Numl Int Num2 1
Assume The Following Function Is Defined Function That Returns The Larger Of Two Integers Int Max Int Numl Int Num2 1 (28.36 KiB) Viewed 75 times
Assume the following function is defined: /function that returns the larger of two integers * int max(int numl, int num2) int result: if (num > num2) result = num; else result - num2; return results What will be displayed for the value of answer if the following statements are executed in main? int a printf("Enter the value for a: \n"); scanf("d", ta): Int b-a + 1; int answer - max( ab); printf("The answer is: $d\n", answer): a. It depends on what the user enters for a b. Always the value of num1. O c A value of O, indicating that max ended normally d. Always the value of num2