home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / TEXT / COMMONC.19 < prev    next >
Encoding:
Text File  |  1993-11-06  |  521 b   |  11 lines

  1. %F,15,COMMONC.MNU%Constructs_in_C_and_C++ / %F,15,COMMONC.18%Previous / %F,15,COMMONC.20%Next
  2.  
  3.          %C,1%Return without Declared Value
  4.  
  5. In C++, a return (either explicit or implicit) from main%C,1%()%C,5%
  6. that is declared to return a value, will result in a warning if no
  7. value is returned.  A return (either explicit or implicit) from all
  8. other functions that is declared to return a value %C,15%must%C,5% return a
  9. value.  In ANSI C, a function that is declared to return a value
  10. can return with no value.
  11.