difference between switch statement and if else
Answers
Answered by
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
English,
4 months ago
Math,
4 months ago
Math,
4 months ago
Social Sciences,
8 months ago
English,
8 months ago
World Languages,
11 months ago
English,
11 months ago