Tag - How can I prevent stack overflow in recursive function in C or C++ programming?