Top

Discussion

What will be the output of the program?

#include
int main()
{
    int i=3;
    switch(i)
    {
        case 1:
            printf("Hello\n");
        case 2:
            printf("Hi\n");
        case 3:
            continue;
        default:
            printf("Bye\n");
    }
    return 0;
}

 

  • A.Error: Misplaced continue
  • B.Bye
  • C.No output
  • D.Hello Hi

Answer: A

No answer description available for this question.
 

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

Post your comment