1.

Write one difference between if statement and switch statement.

Answer»

The switch statement must be a single integer control variable, and each case section must correspond to a single constant value for the variable. The if...else..... if combination allows any kind of condition after each if.



Discussion

No Comment Found