Computer Science, asked by amanparvezkhan22jun2, 8 months ago

difference between switch statement and if else​

Answers

Answered by Tonks
1

Answer:

Switch and if else are used in conditional statements.

Explanation:

Switch can only test for equality whereas if else can evaluate relational or logical expressions also.

if else is more versatile.

if else can handle floating point tests whereas switch cannot.

I hope that helped you

Similar questions