What will be the output of the following C code?
#include <stdio.h>
void main()
{
int i = 0;
while (++i)
{
printf("H");
}
}
#include <stdio.h>
void main()
{
int i = 0;
while (++i)
{
printf("H");
}
}
A. H
B. H is printed infinite times
C. Compile time error
D. Varies
Answer: Option B
Join The Discussion