-
restarting main
I have some code like this
int main(int argc, *argv[]) {
...
}
i want to know how to restart the main function from inside of main
like this,
int main(int argc, *argv[]) {
...
main(argc, ???);
what would i put so that all the args in that array are still transfered?
-
Don't ever call main. Redesign your program, because if you need to call main, you're doing it all wrong.
Quzah.
-
If you're going for the recursive solution, make sure you're absolutely sure how recursion works or you may experience stack overflows (the program mysteriously crashing after a while).