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  Are C# cases insensitive?

Leave a Reply

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