return 0 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

return 0

I know that we can use the return 0 to show the output instead of disappearing after 1 second And my teacher told to me that we also can use system("pause") to do it . However, it couldn't be compiled in this app but it could be compiled in Visual studio 2015(I tried it) what is the problem ?

29th Sep 2016, 3:03 PM
TSAI SHUN JI
TSAI SHUN JI - avatar
1 Answer
- 2
Every program we write , compile and run is machine-dependent , for example : you need clrscr(); function in Turbo C to ascertain that the console screen is clear , whereas this is not needed in Ubuntu(Linux)
29th Sep 2016, 6:56 PM
Divya M R
Divya M R - avatar