state two difference & two similarities between 'if' & 'Switch Case'.
Answers
Answered by
1
Answer:
The switch statement evaluates characters and integers. If the condition of if block is false, the statements inside the else block will execute. In switch, if none of the case statements match, the default statements will execute. The if else check the equality and logical expressions.
Similar questions