Sorry what is function of the system(pause) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Sorry what is function of the system(pause)

20th Sep 2016, 8:03 AM
dayah buntal
3 Answers
+ 2
it pauses the compiler so it doesn't just pop up on the screen and jumps back off immediately
20th Sep 2016, 12:41 PM
Antonio Gallimore
Antonio Gallimore - avatar
0
It prompts the user with a message saying "press any key to continue . . ." preventing the program from automatically exiting at the end of your code. This is useful for when you want to examine the structure of your output
22nd Sep 2016, 10:00 PM
Martie
0
You can use getch(); in the end of ur program right before return 0; to do the same thing
24th Sep 2016, 1:18 AM
Ritik Attri
Ritik Attri - avatar