C - Control Statements - Discussion

You Are Here :: Home > C > Control Statements - Discussion

 



Q.

What will be the output of the following program ?

#include
void main()
{
int a = 2;
switch(a)
{
case 1:
printf("goodbye"); break;
case 2:
continue;
case 3:
printf("bye");
}
}

A. goodbye B. bye
C. byegoodbye D. error

Answer: Option D
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion