Computer Science, asked by Anonymous, 7 months ago

Find the error in the following program
main()
{int m; char g; switch(m)
{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?​

Answers

Answered by CoderRishav
1

Explanation:

grade is not defined

after default ":" sign

else is okay

but write full "public static void main()"

vote it and marks as braisnlist :)

Similar questions