
Decision Statements II-93
(a) pleasantmood (b) moo
(c) mood (d) None of the above
25. What will be the output of the following program?
(a) Hai! (b) Hao
(c) oHai (d) None of the above
26. What will be the output of the following program?
case 'p': printf("%s","Pleasant");
case 'B': printf("%s","mood");
}
else
case 'G': printf("%s","moo");
default : printf("%s", " ");
}
}
void main()
{
char x='H';
clrscr();
switch(x)
{
case 'H': printf("%c",'H');
case 'E': printf("%c",'a');
case 'L': printf("%c",'i');
case 'l': printf("%c",'!');break;
case 'O': printf("%c",'O');
}
}
void main()
{
char x=0;
clrscr();
switch(x)
{
case 0 : printf("%c",'C'); break;
case 0 ...