home *** CD-ROM | disk | FTP | other *** search
- %F,15,COMMONC.MNU%Constructs_in_C_and_C++ / %F,15,COMMONC.18%Previous / %F,15,COMMONC.20%Next
-
- %C,1%Return without Declared Value
-
- In C++, a return (either explicit or implicit) from main%C,1%()%C,5%
- that is declared to return a value, will result in a warning if no
- value is returned. A return (either explicit or implicit) from all
- other functions that is declared to return a value %C,15%must%C,5% return a
- value. In ANSI C, a function that is declared to return a value
- can return with no value.
-