Purchase Solution

Break and Continue Statement: Infinite Loop Situation

Not what you're looking for?

Ask Custom Question

What's the difference between break and continue statement? How will it help the infinite loop situation?

Purchase this Solution

Solution Summary

Described is the difference between break and continue statement and how it will help the infinite loop situation.

Solution Preview

Please find the solution described below.

There is a huge difference between break and continue statement.

"break" is used to break a current executing statement, like a for loop, switch statement etc. That is break helps to come out of the loop.

Both the keywords are generally used in switch statement or inside the loop.

"continue" is used to transfer control to beginning of the loop, and skips the rest of the ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.