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()
{
int i = 0;
for (; ; ;)
printf(“In for loop\n”);
printf(“After loop\n”);
}

What will be the output of the following C code?
#include < stdio.h >
int main()
{
int i = 0;
for (; ; ๐Ÿ˜‰
printf(“In for loop\n”);
printf(“After loop\n”);
}
a) Compile time error
b) Infinite loop
c) After loop
d) Undefined behaviour

Answer: a

Join The Discussion