home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_02 / 069.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-09  |  831KB  |  2550x3300
Labels: book | poster | reckoner | shelf
OCR: The if and if- -else Statements iges The function main() in this program consists of a declaration and two exe- cutable statements; one of the statements is .compound statement or a block The the line variable declaration is contained within the inner block mputer ifyou Note 1:The variable is declared of type int This variable is local to the block part delimited bv the inner pair of f braces Note 2 This line causes compile -time error because references the variablei iappen 11 Since block the was variable declared 1 unl within known in block this and prr this of the statement program is outside that loose your A Word about Style It should be noted that these programs are designed to illustrate the concepts of blocks and local variables to blocks It generally not good programming style to ...