give two difference between the ''switch statement'' and the ''if else...... statement''
Answers
Answered by
8
Switch Case: ... But, the basic difference between switch case and else if ladder is that the switch case statement tests the value of variable or expression against a series of different cases or values, until a match is found. Then, the block of code with in thematch case is executed.
Similar questions
History,
8 months ago
Computer Science,
8 months ago
Math,
8 months ago
Science,
1 year ago
Environmental Sciences,
1 year ago
English,
1 year ago