give 2 difference between the switch case and if else statement
Share
give 2 difference between the switch case and if else statement
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
-
Key differences between if else and switch:-
The expression inside if statement decides whether to execute the statements inside of block or under else block. On the other hand, the expression inside a switch statement decides which case kt execute. You can have multiple of statement for multiple choice of statements.
thanks
plzz follow me
hope it help you