0

Return 1 no warning?

i dont get a warning when executing a program returning 1 in main...?

19th Jan 2017, 12:49 PM
Nils Lucky
Nils Lucky - avatar
2 Answers
+ 3
main returns int, so you can return any int from main. The value is returned to your OS. On Linux you can see it by executing "echo $?" after executing your program.
19th Jan 2017, 1:21 PM
bem
bem - avatar
+ 2
in codeplayground?
19th Jan 2017, 12:49 PM
jay
jay - avatar