home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH04 / A04174.TXT < prev    next >
Encoding:
Text File  |  1993-11-17  |  485 b   |  9 lines

  1. An identifier that is declared outside of any block or class has
  2. file scope.  The identifier is visible throughout the file.  The
  3. only exception is in an enclosed block that contains another
  4. declaration of the same identifier.  This new declaration hides
  5. the declaration at file scope.  In this example, the float value x
  6. is hidden in the function main().  Thus, when x is printed in
  7. main(), the integer value is printed.  When x is printed in f(),
  8. the float value is printed.
  9.