home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH04 / A04173.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-02  |  299.7 KB  |  1 channel  |  11,025 sample rate  |  27 seconds
Transcription: If you declare an identifier in a block, it is only visible within that block. In this example, X is declared in an outer block of the function main and again in an enclosed block. Because int X is declared in an enclosed block, float X from the enclosing block is not visible in the enclosed block. Y is declared in the enclosed block, so it is not visible in the enclosing block.