Can a switch case have multiple values?

The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.

Sizin İçin Seçtik  What is the difference between 2.5G 3G and 4G systems?

Leave a Reply

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

Can a switch case have multiple values?

The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.

Sizin İçin Seçtik  What is conditional statement explain with example?

Leave a Reply

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