Computer Science, asked by Knhf4645, 1 month ago

Switch case is similar to ------- statement

Answers

Answered by Avocadoooooos
13

Answer:

The switch statement is similar to a series of IF statements on the same expression

i hope it's helpful

Answered by adventureisland
0

Switch case is similar to IF statement. A sequence of IF statements within the same expressions are analogous to the switch statement.

Switch case  Vs If Statement :

  • A sequence of IF statements within the same expressions are analogous to the switch statement.
  • At sometimes, you'll want to evaluate a same variables to a number of different variables and perform a different piece of software depending on which number it equals.
  • Integer, floating-point, characters, pointer, and Boolean data can all be evaluated with an if-else expression and they are also can be evaluated using a switch statement.

Similar questions