Examveda

What will be the output of the following C code?
#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


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures