Question: The following program results in a compiler error. Why? int FindMin (int a, int b) { int min; if (a < b) { min =
The following program results in a compiler error. Why? int FindMin (int a, int b) { int min; if (a < b) { min = a; } else { min = b; } return min; int main(void) { int x; int y; scanf("%d", &x); scanf("%d", &y); min = printf ("The smaller number is: %d\ ", min); return 0; FindMin (x, y); } O a. FindMin () should be defined after main (), not before. b. The variable min should be a parameter. c. The variable min is declared in FindMin (), but is used in main (). O d. The variable min is not initialized
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
