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

Today I had the pleasure of chatting to Jignesh Jamnadas, Chief Operations Officer at Mosaic, about his Blueprints for Success. As a Senior Finance and Operations Executive, Jigs (as he is known to many) has a holistic understanding of all facets of business and a flair for managing both people and processes. Having worked with Jigs, I was struc...
I recently had the pleasure of chatting with Wolfgang Goebl, a visionary in the field of business architecture and enterprise design. His unique approach, which he refers to as "architectural thinking," and his work with the EDGY framework, offer valuable insights into the future of organizational structure and design. This tool covers th...
Our next speaker in our Blueprints for Success series is none other than Roger Burlton, a prominent leader in business architecture. As founder of Process Renewal Group, Roger has spent over three decades helping businesses worldwide translate strategy into execution. “Intention is everything.” – Roger Burlton Known for his ...

 






 

Copyright 2006-2024 by Modern Analyst Media LLC