Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following C code?
#include < stdio.h >
void main()
{
int i = 0;
do
{
printf(“Hello”);
} while (i != 0);
}

What will be the output of the following C code?
#include < stdio.h >
void main()
{
int i = 0;
do
{
printf(“Hello”);
} while (i != 0);
}
a) Nothing
b) H is printed infinite times
c) Hello
d) Run time error

Answer: c

Join The Discussion