Which expression is not allowed in switch-case?

The value of the expressions in a switch-case statement must be an ordinal type i.e. integer, char, short, long, etc. Float and double are not allowed.

Sizin İçin Seçtik  Can switch-case contain expression?

Leave a Reply

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