-
What will be the output of the following C code snippet?
#include <stdio.h>
void main()
{
2 < 3 ? return 2: return 3;
}
-
- 2
- Runtime Error
-
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;