home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 241.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  573KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: Passing Parameters to Functions 241 Synopsis Accepts input of float va lues for * and epsilon and cal lcula te to the using the Taylor ser es. The seri es expanded to the point where erm less than epsil on Object: ive Il lustrates the use of pointers and the address opera tor in simul lat ing pass by reference Include Files #inc. lude <stdio h> Funct ion Protot ypes void intro voi PRECONDI TION none POSTCONDI ITION displays messages about the program double to the X( double double eps, int *num terms ptr ); PRECONDITION double representi ing the exponent; eps is double represent ing the desired preci sion; num terms conta ins the address of an int that will contain the number Of terms in the Taylor Series necessary to ach eve the desired preci S on POSTCOND TT ION uses the Taylor series ex ...