What will be the output of the following C code?
#include <stdio.h>
void main()
{
1 < 2 ? return 1 : return 2;
}
#include <stdio.h>
void main()
{
1 < 2 ? return 1 : return 2;
}
A. returns 1
B. returns 2
C. Varies
D. Compile time error
Answer: Option D
Join The Discussion