Explain each of the following examples, and correct any problems you detect
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:5| Question number:4
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:5| Question number:4
total answers (1)
(a) The loop variable
`iter`
did not initialized before used. It should be initialized first.(b) The loop variable
need an explanation for this answer? contact us directly to get an explanation for this answer`status`
is used outside the scope of the`while`
statement, thus it should be defined outside that scope.