Geography, asked by marinachhetri7, 10 months ago

Which statement of switch can be compared to if else final statement​

Answers

Answered by shiva0064
1

Explanation:

In the case of 'if-else' statement, either the 'if' block or the 'else' block will be executed based on the condition. In the case of the 'switch' statement, one case after another will be executed until the break keyword is not found, or the default statement is executed.

Answered by Anonymous
3

Explanation:

switch statement uses single expression for multiple choices. if-else statement test for equality as well as for logical expression. switch statement test only for equality. if statement evaluates integer, character, pointer or floating-point type or boolean type.

❤️✌️

Similar questions