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

"Interview Mania" infinite times



Your comments will be displayed only after manual approval.