home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_07 / 437.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  772KB  |  2550x3300
Labels: binder | book | poster | reckoner
OCR: Exercises and Programming Problems 8.7.6,5 12/3 and 468/ -325 are all rational numbers. presented as Declare data structure that will contain a rational number Write functions that will ppe subtract multiply and divide rational num- deck repre- the bers. struc ture In operands all of the and functions, type the you third pass for declared in the three in result. part a parameters, Use two each of the pointing parameters to data for cards the owed by the Write a function that takes pointer to your data structure as parameter and so on and returns the greatest tcommon divisor of the numerator and denominator. ecessary Use your function from part to write function that will reduce fraction have (rational the fraction number tC modified lowest by the terms function Pass in pointer to the fract ...