5

Function main returning int?

view full story
linux-howto

http://www.unix.com – H friends, As we know, a function returns a value and that value is saved somwhere. like Code: int Sum( int x, int y ) { return x + y; }   Total = Sum( 10, 20 ); The value 30 is saved in variable Total. Now the question is, what int value does the function main return, and where is it saved. And can we see the value of the integer returned by main. Please explain by the help of a small program. Thank you very much! Moderator's Comments: 114 posts and no code tags?!... (HowTos)