give 2 difference between the switch case and if else statement
Answers
Answered by
1
-
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.
Answered by
1
thanks
plzz follow me
hope it help you
Attachments:
Similar questions