home *** CD-ROM | disk | FTP | other *** search
- An identifier that is declared outside of any block or class has
- file scope. The identifier is visible throughout the file. The
- only exception is in an enclosed block that contains another
- declaration of the same identifier. This new declaration hides
- the declaration at file scope. In this example, the float value x
- is hidden in the function main(). Thus, when x is printed in
- main(), the integer value is printed. When x is printed in f(),
- the float value is printed.
-