After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I\'ve searched google loads, I\'m used t
Call this function before you return at the end of main:
void onEnd() { printf("Press any key to exit..."); _getch(); }