0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
exit the program with the return code as 1
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
http://www.cplusplus.com/reference/c.../cstdlib/exit/

when you finish main() you use return 0; ---->(exit(0) finished without errors)
exit(1) --->reurns 1 which means the program terminated with error.