What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 0;
for (k < 3; k++)
printf("Hello");
}
#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
Join The Discussion