Getting out of a recursive function at the topmost level in C++
- by Phenom
Say that you are several levels deep into a recursive function. The function was originally called in main. Is there a way for you to break out of the recursion and go straight back to main without having to go through all the other functions above?