Top

Discussion

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

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment