hi,
can I call main() in other function. if so how?!
I need to go back and start again my program tell me how can I do this
thanks alot
hi,
can I call main() in other function. if so how?!
I need to go back and start again my program tell me how can I do this
thanks alot
You should not.
Use a loop.I need to go back and start again my program tell me how can I do this
And use your creativity.
It's not difficult to imagine a way.
If another function has the need to return the the beginning of a program, it could return something that tells main it wants to go back to the beginning, for example.
If you're serious, you need to get back to the books. Actually, no, you have to get back to the books even if you're joking.
runProgram() would contain your program.Code:... int main(void) { int continue; while((continue = runProgram())); return 0; } ...
thanks