Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0, L = 0;
    while (k < 2)
    {
    Read: k++;
    while (L < 3)
    {
    printf("Interveiw Mania");
    goto Read;
    }
    }
    }
    1. "Interview Mania" is printed one time
    2. "Interview Mania" is printed 3 time
    3. "Interview Mania" is printed infinite time
    4. Compilation Error
    5. None of these
Correct Option: C

"Interview Mania" is printed infinite time



Your comments will be displayed only after manual approval.