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

  1. %F,15,COMMONC.MNU%Constructs_in_C_and_C++ / %F,15,COMMONC.5%Previous / %F,15,COMMONC.7%Next
  2.  
  3.                      %C,1%Definitions
  4.  
  5. An object declaration, for example:
  6.  
  7.    %C,1%int %C,5%i%C,1%;
  8.  
  9. is a definition in C++.  In ANSI C it is a tentative definition.
  10. In C++, a global data object must be defined only once.  In ANSI
  11. C, a global data object can be declared several times without
  12. using the %C,1%extern%C,5% keyword.
  13.  
  14. In C++, multiple definitions for a single variable cause an
  15. error.  A C compilation unit can contain many identical tentative
  16. definitions for a variable.
  17.  
  18.