Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int i = 2;
    do
    {
        printf("Hi");
    } while (i < 2)
}

A. Compile time error

B. Hi Hi

C. Hi

D. Varies

Answer: Option A


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures