Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 0;
    for (i++; i == 1; i = 2)
        printf("In for loop ");
        printf("After loop\n");
}

A. In for loop after loop

B. After loop

C. Compile time error

D. Undefined behaviour

Answer: Option A


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures