Forums for the Business Analyst

 
  Modern Analyst Forums  Careers  Career Advice &...  What is the use of break statement?
Previous Previous
 
Next Next
New Post 3/8/2021 10:33 PM
User is offline sravanih2k
2 posts
No Ranking


What is the use of break statement? 

Hi, What is the use of break statement

 
New Post 4/4/2021 8:54 PM
User is offline ShreeMBA
15 posts
9th Level Poster


Re: What is the use of break statement? 

Hi,

The break statement is used in a multiple loop statements like the switch  or do while statements. 
It terminates immediately  and program control moves to the next statement  following the loop.

It is useful when there are many conditions to be evaluated and once there is a match the loop can be skipped proceeding to the next execution code in the program instead of evaluating all conditions.

Hope this helps.

 

 
Previous Previous
 
Next Next
  Modern Analyst Forums  Careers  Career Advice &...  What is the use of break statement?

Community Blog - Latest Posts

A business analysis checklist helps you stay organized while you work through projects. It includes questions that will help you identify problems in your current processes, and suggest improvements for future projects. Understand the Problem Before you start writing code, you need to understand what problem you're solving. This means u...
I’ve heard “The End is Near!” for Business Analysts for almost 20 years.  Waterfall project management, with its need for formal requirements, is dead…a dinosaur…so 1990’s.  To be honest, that’s mostly true.  With the publishing of the Agile Manifesto in 2001 there was no need for a 2-inch-...
Business analysis is used to identify and articulate the need for change in how organizations work, and to facilitate that change. As business analysts, we identify and define the solutions that will maximize the value delivered by an organization to its stakeholders. We look for opportunities for new business models and new ways to work together. ...

 






 

Copyright 2006-2022 by Modern Analyst Media LLC