Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started