home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_03 / 184.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  481KB  |  2550x3300
Labels: book | crt screen | monitor | poster | reckoner
OCR: 184 Chapter 3 Basic Data Types the would values value) division and the force One result their this part solution sum will value are also 18 to of to be type type of use type float, int. Cast int; to when and the type the the division sum division is on would divided would the be no by variable truncating longer (another sum. truncate integer That int fractional Example 3-12: cast.c cast.c Synopsi Accepts average input of three integers and displays thei Objective Illustrates one use of type casts. Incl lude Files #include <stdio n Funct: .on Protot ypes void intro void PRECONDI NOILI none POSTCONDI NOILI Displays an int roduct ion to the prog am void resul ts int numi int num2 int num3 ); PRECOND ITION numi num2 and num3 can be any integers. POSTCONDITION: Calcul lates and displays the av ...