Top

Discussion

What will be the output of the program?

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

 

  • A.Hello
    Hi
  • B.Hello
    Bye
  • C.Hi
  • D.Bye

Answer: C

No answer description available for this question.
 

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

Post your comment