Is switch case still used?

No, switch statements are not generally used wrong . It’s more readable then a long if/else chain, compilers can emit very efficient code if the checked values are reasonably contiguous, and it’s easier to write error-checking compilers that warn you when you forget an alternative.

Sizin İçin Seçtik  How do you end a while loop in a switch case?

Leave a Reply

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