Home / Questions / Does a break is required by default case in switch statement?
Explanatory Question

Does a break is required by default case in switch statement?

👁 1,041 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Yes, if it is not appearing as the last case and if we do not want the control to flow to the following case after default if any.