Right Click to Search

Saturday, December 19, 2024

Difference Between for-loop & Do-while-loop




Difference Between for-loop & Do-while-loop

For-Loop
Do-While Loop
Entry-Controlled Loop Exit-Controlled Loop
Loop Condition has to be initially
TRUE for body to be executed

Loop body will be executed at-least once

Combines initialization,Condition,Update
Statements
Initialization,Condition,Update
Statements are to be written Seperately
Syntax :
  for(exp1;exp2;exp3)

Syntax :
          do
          {
           statement...
           statement...
          } while(condition);



Tags / Keywords : |

Stumble
Delicious
Technorati
Twitter
Facebook

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

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates