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 9: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 7: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

In today's dynamic business environment, mastering effective business analysis techniques is crucial for organizations aiming to achieve sustainable growth and competitive advantage. Business analysis involves the systematic evaluation of business processes, requirements, and strategies to uncover insights that drive informed decision-making. T...
For many years now, a lot of people have found it difficult to identify the difference between Sankey diagrams and parallel sets. The two have made headlines, given that most people find it challenging to note what makes them different from each other. What remains to be undeniable is the fact that the Sankey diagram is among the top data visualiza...
Hosted by Deirdre Caren on Agora Insight's Blueprints for Success - Business Architecture and AI In our recent conversation with Joseph Edward, we explored the transformative power of business architecture (BA) and technology as tools for uplifting communities. Joseph, with his rich background spanning from education to IT leadership, shared...

 






 

Copyright 2006-2024 by Modern Analyst Media LLC