Can switch-case contain expression?

1) The expression used in switch must be integral type ( int, char and enum) . Any other type of expression is not allowed. 2) All the statements following a matching case execute until a break statement is reached.

Sizin İçin Seçtik  Is == case-sensitive in C#?

Leave a Reply

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