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' :...


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' :

default:

    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





Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here