Top

Discussion

What is the output of the below program?

#include 
int main()
{
    int i = 0;
    switch (i)
    {
        case '0': printf("Geeks");
                break;
        case '1': printf("Quiz");
                break;
        default: printf("GeeksQuiz");
    }
    return 0;
} 

 

  • A.Geeks
  • B.Quiz
  • C.GeeksQuiz
  • D.Compile-time error

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment