home *** CD-ROM | disk | FTP | other *** search
- %F,15,COMMONC.MNU%Constructs_in_C_and_C++ / %F,15,COMMONC.5%Previous / %F,15,COMMONC.7%Next
-
- %C,1%Definitions
-
- An object declaration, for example:
-
- %C,1%int %C,5%i%C,1%;
-
- is a definition in C++. In ANSI C it is a tentative definition.
- In C++, a global data object must be defined only once. In ANSI
- C, a global data object can be declared several times without
- using the %C,1%extern%C,5% keyword.
-
- In C++, multiple definitions for a single variable cause an
- error. A C compilation unit can contain many identical tentative
- definitions for a variable.
-
-