GATE Exam | Aptitude Questions | GATE Syllabus | GATE Result | Mock Test | GATE Preparation
0 votes

What will be the output of the following C program segment?

char inchar = 'A';

switch (inchar)


case 'A' :

    printf ("choice A \n") ;

case 'B' :

    printf ("choice B ") ;

case 'C' :

case 'D' :

case 'E' :


    printf ("No Choice") ;


(A) No choice
(B) Choice A
(C) Choice A
Choice B No choice
(D) Program gives no output as it is erroneous

asked in c programming by gate

1 Answer

0 votes
(C) Choice A
Choice B No choice
answered by gate

Related questions

The best answer to any question