Find the error in the following program:

		int m;
		char g;
			case 3: grade="P";break;
			case 2: grade="Q";break;
			case 1: grade="R";break;
			default: grade="S";break;

What will be the output of the program?

A Undefined symbol "grade"
B switch statement cannot have more than three labels
C case label cannot be numbers
D none of these
Answer & Explanation
Option: [A]

mcq on c programming conditional statements 01

current affairs 2021 pdf plan

Current Affairs MCQs

State-wise Current Affairs

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test