Explain the break statement, C/C++ Programming

The break statement

The break statement, which was already covered in the switch.. case, can also be used in the loops. When a loop statement is encountered in the loops the control is transferred to the statement outside the loop. When there are nested loops it breaks only from the current loop in which it was written.

 

Posted Date: 6/28/2013 1:29:22 AM | Location : United States







Related Discussions:- Explain the break statement, Assignment Help, Ask Question on Explain the break statement, Get Answer, Expert's Help, Explain the break statement Discussions

Write discussion on Explain the break statement
Your posts are moderated
Related Questions
What is the difference among const char *myPointer and char *const myPointer?  A: Const char *myPointer is a non constant pointer to constant data; whereas char *const myPointer

A more advanced data type is the structure; here we can define a template as a collection of different variables e.g.     struct birthdate   {     int month;     int day;

A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

Input Format: First line starts with T, which is the number of test cases. Each test case contains a string (S). Output Format: For each test case print the minimum number of ch

to find prime numbers upto any number say "n" entered by user

Write a program to print all the factors of a positive integer A

Write a program called plus that will display asterisks in the shape of a plus sign which has the height and width specified by the user. You must only allow entry of an odd numb

evolutio of object oriented programing

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec