Preventing console window from closing on Visual Studio C/C++ Console application

If you run without debugging (Ctrl+F5) then by default it prompts your to press return to close the window. If you want to use the debugger, you should put a breakpoint on the last line.

Leave a Comment