The return
statement will cause the execution jump out from the currently executed function (in this case accept3()
), so the loop inside the function is also jumped out.
solved Does the return statement cause the execution to jump out from the currently executed function?