Vidyalelo
C Programming · Q107

Control Structures

Programming · C Programming · question 107

Q107

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

A.
It will display hello
B.
It will throw an error
Answer
C.
Nothing will be displayed
D.
Compiler dependent

Answer: Option B

Solution

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