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;
    for (k; k < 3; k++)
    {
    for (L = 0; L < 5; L++)
    {
    printf("Interview\n");
    break;
    }
    printf("Mania\n");
    }
    printf("Interview Mania\n");
    }
    1. Interview
      Mania
      Interview
      Interview Mania
    2. Interview Mania
    3. Interview
      Mania
      Interview
      Mania
      Interview
      Mania
      Interview Mania
    4. Compilation Error
    5. None of these
Correct Option: C

Interview
Mania
Interview
Mania
Interview
Mania
Interview Mania



Your comments will be displayed only after manual approval.