Top

Discussion

Predict the output of the below program:

#include 
int main()
{
    int i = 3;
    switch(i)
    {
        printf("Outside ");
        case 1: printf("Geeks");
            break;
        case 2: printf("Quiz");
            break;
        defau1t: printf("GeeksQuiz");
    }
    return 0;
}

 

  • A.Outside GeeksQuiz
  • B.GeeksQuiz
  • C.Nothing gets printed

Answer: C

No answer description available for this question.
 

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

Post your comment