where does main() return its value?
Posted
by piemesons
on Stack Overflow
See other posts from Stack Overflow
or by piemesons
Published on 2010-04-14T13:25:15Z
Indexed on
2010/04/14
13:33 UTC
Read the original article
Hit count: 146
I'm newly using CODE::BLOCKS+mingw compiler If I don't type return 0 at the end of program,I can see that main() is returning some integer,I learnt that main() returning 0 infers program executes successfully.I don't find any flaw in my code, why is it returning some integer?
secondly any function returns its value to its function call, to where does main() return its value?
© Stack Overflow or respective owner