Examveda

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: Option A


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures