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 < 3)
    {
    Level1 : k++;
    while (L < 4)
    {
    printf("Interview Mania");
    goto Level1;
    }
    }
    }
    1. Interview Mania
    2. "Interview Mania" is printed 4 times
    3. Compilation Error
    4. "Interview Mania" is printed infinite times
    5. None of these
Correct Option: D

"Interview Mania" is printed infinite times



Your comments will be displayed only after manual approval.