Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

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]
Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP
Assam Direct Recruitment Test Series

Computer Science Topics