Computer Science, asked by bhoomiram470, 1 month ago

difference between if statement and switch Statement​

Answers

Answered by amanply1969
0

Answer:

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