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

Interview Mania



Your comments will be displayed only after manual approval.