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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!