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

Is Agile a reason to avoid documentation? I bet this question shows up again and again while working with product requirements. On one side, we have got long specifications, complicated diagrams, mystical technical design, too many prototypes and pretty obvious for engineers user guides (do we really need so much?). On the other side, can we actual...
The cloud-native application development has helped enterprises all around the globe reduce time-to-market, enhance performance, and develop agility and flexibility. Several enterprises are achieving these results by migrating their systems or traditional monolithic applications to the cloud. But to gain from the real benefits of cloud technology, ...
So you’ve found the perfect time and place to study and you’re ready to finally get some work done. You’ve pulled out your laptop, your textbook, and your notes, and four different highlighters. After five minutes of reading your textbook, you start zoning out and thinking about puppies. Then, you go on Tumblr and look at cut...

 



Upcoming Live Webinars




 

Copyright 2006-2021 by Modern Analyst Media LLC