What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
if (true);
printf("hello");
}
#include <stdio.h>
void main()
{
int x = 5;
if (true);
printf("hello");
}
A. It will display hello
B. It will throw an error
C. Nothing will be displayed
D. Compiler dependent
Answer: Option B
the output is hello