adplus-dvertising
frame-decoration

Question

In the context of "break" and "continue" statements in C, pick the best statement.

a.

"break" and "continue" can be used in "for", "while", "do-while" loop body and "switch" body.

b.

"break" and "continue" can be used in "for", "while" and "do-while" loop body. But only "break" can be used in "switch" body.

c.

"break" and "continue" can be used in "for", "while" and "do-while" loop body. Besides, "continue" and "break" can be used in "switch" and "if-else" body.

d.

"break" can be used in "for", "while" and "do-while" loop body.

Answer: (b)."break" and "continue" can be used in "for", "while" and "do-while" loop body. But only "break" can be used in "switch" body.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In the context of "break" and "continue" statements in C, pick the best statement.