Saturday, December 19, 2024

Do While Loop in C Programming


Do While Loop in C Programming

Do-While Loop :
  • It is another Loop Control Statement in C
  • It is Exit-Control Loop / Bottom tested
  • Statements within the Loop ( Loop body ) Executed at-least once.
Syntax :
              do 
                  {
                   statement1;
                   statement2;
                   statement3;
                  } 
                  while ( condition ) ;                 // Note This Semicolon


Steps of Evaluation :
  1. Statements are evaluated.
  2. Condition is Checked .
  3. If Condition is True then Loop Body is Re-executed.
  4. Otherwise It Simply Follows next statement after the while








Bookmark & Share

0 comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

Copyright Notice | Link Exchange | Privacy Policy |Contact Us

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls