Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int k = 0;
    for (k < 3; k++)
    printf("Hello");
}

A. Compile time error

B. Hello is printed thrice

C. Nothing

D. Varies

Answer: Option A


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures