Computer Science, asked by guptapurbanha1211, 3 months ago

give 2 difference between the switch case and if else statement​

Answers

Answered by shafanazar8
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 mgpsshubh7831
1

thanks

plzz follow me

hope it help you

Attachments:
Similar questions