What will be the output of the following C code snippet?
Posted: Wed Jul 13, 2022 7:53 pm
#include <stdio.h> void main() { 1 < 2 ? return 1: return 2; }
a) returns 1
b) returns 2
c) Varies
d) Compile time error
a) returns 1
b) returns 2
c) Varies
d) Compile time error