Why default is used in C?

Switch case statements are used to execute only specific case statements based on the switch expression . If switch expression does not match with any case, default statements are executed by the program.

Sizin İçin Seçtik  Which is faster switch case or if-else in C#?

Leave a Reply

Your email address will not be published. Required fields are marked *