Computer Science, asked by muneeb2007, 2 months ago

Difference between switch and else-if (any four).

in short

Answers

Answered by nazhashim01
1

Answer:

The main difference between if else and switch is that, in if else, the block to execute depends on the expression in if statement while, in switch, the execution depends on the single variable passed to it. There are various decision-making structures in programming. Two of them are if else and switch.

Explanation:

plz mark me as brainliest

Similar questions