-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
2 < 3 ? return 2 : return 3;
}
-
- Runtime Error
- 2
- 3
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c: In function ‘main’:
main.c:4:17: error: expected expression before ‘return’
2 < 3 ? return 2 : return 3;