MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| D. | Choice B No choice |
| E. | Program gives no output as it is erroneous |
| Answer» D. Choice B No choice | |