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 >
int main()
{
do
printf(“In while loop “);
while (0);
printf(“After loop\n”);
}

What will be the output of the following C code?
#include < stdio.h >
int main()
{
do
printf(“In while loop “);
while (0);
printf(“After loop\n”);
}
a) In while loop
b) In while loop after loop
c) After loop
d) Infinite loop

Answer: b

Join The Discussion