+ 1
why does my programs close as soon it opens?
I have return 0, but it just closes idk why
2 Respostas
+ 2
because program that you executes it runs and process terminates all its done in millisecs . you can use getch () function for seeing the output however it is used to take character as input but you may also use it for seeing results.
+ 1
or use system pause funtion at the end of ur program