What is the use of default keyword in switch?

Definition and Usage The default keyword the default block of code in a switch statement. The default keyword specifies some code to run if there is no case match in the switch . Note: if the default keyword is used as the last statement in a switch block, it does not need a break .

Sizin İçin Seçtik  Granüler nedir tıp?

Leave a Reply

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