Page 1 of 1

What will be the output of the following C code snippet?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
#include <stdio.h> void main() { 1 < 2 ? return 1: return 2; }
a) returns 1
b) returns 2
c) Varies
d) Compile time error