Computer Science, asked by titch, 23 hours ago

Which of the following statements is not correct about switch and why.
a. The switch statement is a multi-way decision.
b. In switch- case, each case acts like a simple label.
c. Default section will be executed in every case.
d. Every case will continue execution until it reaches break command.

Answers

Answered by utkarshpdubey
0

Answer:

Option C is correct

Please mark me brainliest

Answered by shilpa85475
0

True statements:

The switch statement is a multi-way decision.

Every case will continue execution until it reaches break command.

Explanation:

In switch-case, each case acts like a simple label.

A switch statement causes control to transfer to one labelled statement in its statement body, depending on the value of the condition of the problem.

A case or default label can only appear inside a switch statement.

The constant expression in each case label is converted to a constant value that's the same type as condition.

The Default section will be executed in every case.

The default statement is executed if no case constant-expression value is equal to the value of the expression .

If there's no default statement, and no case match is found, none of the statements in the switch body gets executed.

The default statement does not execute in every case.

Similar questions