-
What will be the output of the following C code?
#include <stdio.h>
#define MINIMUM 15
#if defined(MINIMUM) - (!defined(MAXIMUM))
#define MAXIMUM 115
#endif
int main()
{
printf("%d %d\n", MAXIMUM, MINIMUM);
return 0;
}
-
- 15 115
- 115 15
- Garbage value
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c: In function ‘main’:
main.c:8:27: error: ‘MAXIMUM’ undeclared (first use in this function); did you mean ‘MINIMUM’?
printf("%d %d\n", MAXIMUM, MINIMUM);
^~~~~~~
MINIMUM
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in