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

Interview Mania In while loop
Interview Mania After loop



Your comments will be displayed only after manual approval.