Computer Science, asked by yash61660, 5 months ago

advantages of using if else over switch statemen​

Answers

Answered by selvimanikandan76
0

Explanation:

if-else better for boolean values: If-else conditional branches are great for variable conditions that result into a boolean, whereas switch statements are great for fixed data values. Speed: A switch statement might prove to be faster than ifs provided number of cases are good

Similar questions