421 views
0 votes
0 votes

what is the o/p?

int main()
{
    char inchar = 'A';
    switch (inchar)
    {
    case 'A' :
        printf ("choice A \n") ;
    case 'B' :
    {
        printf ("choice B") ;
        break;
    }
    case 'C' :
    case 'D' :
    case 'E' :
    default:
        printf ("No Choice") ;
    }
}

my guess is -

choice A

choice B

Please log in or register to answer this question.

Related questions

1 votes
1 votes
2 answers
1
rahul sharma 5 asked Dec 14, 2016
475 views
For n=2 the P is coming as 3,but none of the option is satisfying?
3 votes
3 votes
1 answer
3
Meenakshi Sharma asked Apr 4, 2018
1,596 views
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
0 votes
0 votes
1 answer
4