-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
#define min 56;
printf("%d", min);
}
-
- Depends on compiler
- 56
- Runtime Error
- Nothing
- Compilation Error
Correct Option: E
Compilation Error
main.c: In function ‘main’:
main.c:4:23: error: expected ‘)’ before ‘;’ token
#define min 56;
^
main.c:5:22: note: in expansion of macro ‘min’
printf("%d", min);