हिंदी

Compare the Followingbreak and Continue Statements - Structured Programming Approach

Advertisements
Advertisements

प्रश्न

Compare the following

break and continue statements

अंतर स्पष्ट करें

उत्तर

break statement: The break statement neglects the statement after it in the loop and transfer the control outside the loop.
Operation of break statement in for loop:
for(initialization;condition;inc/dec)
{
-
-

Continue statement: The continue statement also neglects the statement after it in the loop and transfer the control back to the starting of the loop for next iteration.
Operation of continue statement in for loop:

-
-
}

shaalaa.com
Control Structures - Nested Control Structure
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2017-2018 (June) CBCGS

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Course
Use app×