Computer Science, asked by kaviprasath344, 10 months ago

Two diff between switch case and if-else statement

Answers

Answered by Irfan1729
1

Answer:

Expression inside if statement decide whether to execute the statements inside if block or under else block. On the other hand, expression inside switch statement decide which case to execute.

Explanation:

hope it helps you

Similar questions