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

"Krishana" infinite times



Your comments will be displayed only after manual approval.