Computer Science, asked by seeshanya735, 1 month ago

Differentiate between the following switch and if else if statement

Answers

Answered by debarunbanerjee1205
0

Answer:

An if-else statement can evaluate almost all the types of data such as integer, floating-point, character, pointer, or Boolean. A switch statement can evaluate either an integer or a character. In the case of 'if-else' statement, either the 'if' block or the 'else' block will be executed based on the condition.

Pls mark my answer as the brainliest if it helped

Similar questions