A
Q. What is the output of C Program with switch statement.?
Code:
int main()
{
int a=3;
switch(a)
{
case 2: printf("ZERO "); break;
case default: printf("RABBIT ");
}
}
{
int a=3;
switch(a)
{
case 2: printf("ZERO "); break;
case default: printf("RABBIT ");
}
}
- Correct Answer - Option(D)
- Views: 7
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.