Can enum be used in switch case in C?

1) The expression used in switch must be integral type ( int, char and enum) . Any other type of expression is not allowed.

Sizin İçin Seçtik  Can we use string in switch case in JavaScript?

Leave a Reply

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