Question: #include int maximum(int x, int y, int z); int main(void) { int number1; int number2; int number3; printf(Enter three integers: ); scanf(%d%d%d, &number1, &number2, &number3);
#includeint maximum(int x, int y, int z); int main(void) { int number1; int number2; int number3; printf("Enter three integers: "); scanf("%d%d%d", &number1, &number2, &number3); printf("Maximum is: %d ", maximum(number1, number2, number3)); } int maximum(int x, int y, int z) { int max = x; if (y > max) { max = y; } if (z > max) { max = z; } return max; }
e) What does the main function do? f) What does the maximum function do? g) How/where does the main function call the maximum function? h) How/where does the maximum function return to main function? i) What value is returned to main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

