Ok I'm using the GCC compiler in C . I have a tree style of menu that has been designated function "Manager". I want to return to the top of the tree so basically what I do is at some point from within the "Manager" function I make the call to "Manager" again.
void Manager()
{
...
...
Manager();
...
return;
}
Now I'm wondering if this is good programming practice or if this will cause any bugs in my program because I have functions that do not reach the "return" point or what is the end of the code.
I have noticed a few bugs in my program and I'm wondering if this is the cause because it seems it's not a consistently occurring bug.