Solved

The Following Code Segment Should Include the __________ Statement at the End

Question 12

Short Answer

The following code segment should include the __________ statement at the end of each case to cause proper exit of control.
switch (operator) {
case '+':
result = x + y;
add_op++;
/* missing statement */
case '/':
result = x / y;
divide_op++;
/* missing statement */
default: ;
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions