Compare and contrast the loops that used a for with those using a while. Are there advantages or disadvantages to using either form
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:1| Question number:1.14
All Answers
total answers (1)
`
need an explanation for this answer? contact us directly to get an explanation for this answerfor
` has a scope where you can define temporary variables and used inside loop.`
while
` is simple and apporiate for situations where the loop time is unknown before the loop.