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 / 075.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-09  |  572KB  |  2550x3300
Labels: binder | book | crt screen | poster | reckoner
OCR: The if and if-else Statements qo ective Illustrates an if-else statement and the use functi ion call in control expressi .on Incl lude Files #incl lude <stdio h> es state give the ono Funct ion Prototypes int odd int intvar tput PRECONDITION: intvar can be any intecer POSTCOND NOILI The value retur rned is if the parame ter is odd enough and the parameter even int main void int intvar; printf( "Enter dec: imal integer: scanf( ntvar odd( intvar Note 1 estion Printf odd In" intvar else Note 2 printf( \n" intvar return eal expression odd res parame- int odd( int intvar ledby 2 That nt; parameter inter- return intvar Note 3 This program consists of two functions, the mandatory function named main( and function named oad( Scanning the code we see that ma in() has one local variable call to prin ...