Is a default case necessary in a switch statement?

.

  • Rinku
  • 16 Apr
  • 88394 Views
  • 92 Answers
Your Answer

the default case in switch statement is not necessary,but it is useful when no case in switch is satisified or not matched then automatically it executes the default statement,if it is not there ,the switch statement is terminated.

C Language

Didn't get the answer.
Contact people of Talent-C Language directly by clicking here