"C++ Primer" states that failing to provide a return after a loop that contains a return is an error.
Is that true? What I know is once the return statement is executed, the control will jump over the rest of the function back to the calling function.
So, what is the need of that return outside of the loop?
 
    