Is switch-case is better than nested if-else? If you are agree than explain how? Why
we use break in switch-case?
plz ans this que
Answers
Answered by
5
A switch statement is usually more efficient than a set of nested ifs. ... Basically, an if else is used for taking a decisions while a switch statement is used to test the value of the given variable against a list of case value .
mark my answer brainliest
Similar questions
Science,
21 days ago
Computer Science,
21 days ago
Computer Science,
21 days ago
English,
1 month ago
Social Sciences,
1 month ago
Physics,
8 months ago
English,
8 months ago