Computer Science, asked by raju5293, 1 year ago

int x=0
switch(x)
{
case 1:printf("one");
case 2:printf("zero");
}

Answers

Answered by helpingbuddy40
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.
Similar questions