GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 22 of 99    Print  
Why for loop is effective than while loop

  
Total Answers and Comments: 3 Last Update: January 30, 2007     Asked by: j_priyaa 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 24, 2007 06:44:42   #1  
dinesh        

RE: Why for loop is effective than while loop
for loop is very simple and it is in only one line but while loop is complex when compared to for loop
 
Is this answer useful? Yes | No
January 28, 2007 12:59:02   #2  
       

RE: Why for loop is effective than while loop
While loop excutes the certain condition untill the given condition becomes false where as in for loop we can initialise the variable, depending upon that we can specify a condition to check on every execution.
 
Is this answer useful? Yes | No
January 30, 2007 06:15:20   #3  
santoshkapawar        

RE: Why for loop is effective than while loop
Because it takes single line for initialization,condition check and incremention. in While loop default statement is not possible which is in for while statement must contain conditional statement which may not required in for semicolan after whie statement is allow which is allow in for
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape