No products in the cart.

Differentiate between break and continue statement

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Differentiate between break and continue statement
  • 1 answers

Yogita Ingle 5 years, 8 months ago

<th>Basis for Comparison</th> <th>break</th> <th>continue</th>
Task It terminates the execution of remaining iteration of the loop. It terminates only the current iteration of the loop.
Control after break/continue 'break' resumes the control of the program to the end of loop enclosing that 'break'. 'continue' resumes the control of the program to the next iteration of that loop enclosing 'continue'.
Causes It causes early termination of loop. It causes early execution of the next iteration.
Continuation 'break' stops the continuation of loop. 'continue' do not stops the continuation of loop, it only stops the current iteration.
Other uses 'break' can be used with 'switch', 'label'. 'continue' can not be executed with 'switch' and 'labels'.
http://mycbseguide.com/examin8/

Related Questions

Case study questions of chapter 1
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App