After I compile my program and run the executable, it closes instantaneously. I barely see my output. How do I prevent this?
The following two lines will print the message "Press ENTER key to Continue" and then pause execution waiting for the enter key. I hope this helps.
printf("Press ENTER key to Continue\n");
getchar();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With