Vidyalelo
C Programming · Q154

Control Structures

Programming · C Programming · question 154

Q154

What will be the output of the following C code? #include void main() int x = 5; if (x < 1) printf("hello"); if (x == 5) printf("hi"); else printf("no");

A.
hi
Answer
B.
hello
C.
no
D.
error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board