How is the if/else... if combination more general than a switch state ment ??
Answers
Answered by
0
Answer:
A switch statement is usually more efficient than a set of nested ifs. ... Check the Testing Expression: An if-then-else statement can test expressions based on ranges of values or conditions, whereas a switch statement tests expressions based only on a single integer, enumerated value, or String object.
Explanation:
give the options
Similar questions
History,
27 days ago
Physics,
27 days ago
Psychology,
27 days ago
Hindi,
1 month ago
Social Sciences,
1 month ago
English,
9 months ago
Math,
9 months ago