home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_10 / 598.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  728KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 598 Chapter Input and Output Exercises and Programming Problems The program cp.c makes a copy of a file It uses getc and putc( to do the input and output. Write four new versions of a file copy program. Each of the programs should have the same functionality as cp.c In the first version, use fgetc() to do the input and fputc() to do the output In the second version, use fgets() to do the input and fputs) to do the output In the third version, use fread() to op the input and fwrite() to do the output In the fourth version, use fscanf) to do the input and fprintf() to do the output Compare the If sizes facilities of Fthe for object testing code execution from all efficiency five versions are of available the file on copy your programs. system test the efficiency of each version. Report on yo ...