Differences between if else and switch
Answers
Answered by
3
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 the match case is executed
Answered by
4
here ... ur.. ans...
Differences Between if-else and switch. Expression inside if statement decide whether to execute the statements inside if block or under else block. On the other hand, expression inside switch statement decide which case to execute. ... On the other hand, switch statement evaluates only character or a integer datatype.
may it help u
Similar questions