Question: What is the output of the following code? #include void main() { int marks = 80; char grade; switch (marks) } case 80: grade

What is the output of the following code? #include void main() { int marks = 80; char grade; switch (marks) }

What is the output of the following code? #include void main() { int marks = 80; char grade; switch (marks) } case 80: grade = 'A'; case 70: grade } 'B'; case 60: grade 'C'; default: grade = 'D'; printf("%", grade); P Answer:

Step by Step Solution

3.30 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!