Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    void main()
    {
    int k = 0;
    int L = 0;
    for (k = 0; k < 4; k++)
    {
    for (L = 0; L < 3; L++)
    {
    if (k > 1)
    continue;
    printf("Interview Mania\n");
    }
    }
    }
    1. Compilation Error
    2. "Interview Mania" is printed 6 times
    3. "Interview Mania" is printed 5 times
    4. "Interview Mania" is printed 4 times
    5. None of these
Correct Option: B

"Interview Mania" is printed 6 times



Your comments will be displayed only after manual approval.