Banking Computers Science Sample Paper Computer - Sample Paper - 22

  • question_answer
    For multiple branching in "C" we use___ statement.

    A) Switch                          

    B) Go to

    C) Cout                            

    D) Case

    E) Cin

    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.


You need to login to perform this action.
You will be redirected in 3 sec spinner