Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int k = 1;
    do
    {
    printf("Interview Mania");
    } while (k != 1);
    }
    1. "Interview Mania" infinite times
    2. Compilation Error
    3. "Interview Mania" one time
    4. Nothing
    5. None of these
Correct Option: C

"Interview Mania" one time



Your comments will be displayed only after manual approval.