int x=0
switch(x)
{
case 1:printf("one");
case 2:printf("zero");
}
Answers
Answered by
1
your qn seems incomplete.
if u want to know the output,output would be blank because value of the switch variable(x) is equal to 0 and there is no case 0;
so no cases would be executed.
In switch statement,we generally use default case at the end which gets executed if none of the cases are executed but there are no default case in ur program.
if u want to know the output,output would be blank because value of the switch variable(x) is equal to 0 and there is no case 0;
so no cases would be executed.
In switch statement,we generally use default case at the end which gets executed if none of the cases are executed but there are no default case in ur program.
Similar questions
Math,
7 months ago
Political Science,
7 months ago
Math,
1 year ago
Economy,
1 year ago
Physics,
1 year ago