GkSeries.com

Q.

Consider the following program fragment:

switch (input)
{
	case ‘1’: printf (“one”);
	case ‘3’: printf (“three”);
	case ‘4’: printf (“five”);
	default: printf (“odd”); break;
}

What will be printed when input is ‘3’?

[A] Three five odd
[B] Three
[C] Three odd
[D] Three odd
Answer & Explanation
Option: [B]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test