Computer Science Ques 559
Question: For multiple branching in “C” we use___ statement.
Options:
A) Switch
B) Go to
C) Cout
D) Case
E) Cin
Show Answer
Answer:
Correct Answer: A
Solution:
- The switch-case statement is a multiway decision making statement. Unlike the multiple decision statement that can be created using if-else, the switch statement evaluates the conditional expression and tests it against the numerous constant values. During execution, the Branch corresponding to the value that the expression matches is taken.