home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_08 / 465.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  627KB  |  2550x3300
Labels: binder | book | crt screen | reckoner
OCR: 8.4 Modules and External Variables 465 Example 8-8 incr.c incr External Vari Lable Declarati ons extern int Note 1 void incr( void This file contains the single function incr. The code for incr() incre- ments the variable X Note 1:The variable is referenced in this file also. Again, the keyword extern indicates has been defined in different file but be referenced here The external reference will be resolved at link time Learning Activities Find out if separate compilation of source files is possible with your implementation of C. Ifit is Compile link and execute the program consisting of the files driver.c output.c, and incr.c by Discovery Experiment with the placement of the decla- ration and lexternal declaration of the variable Determine the is in answers to the following questions Can ...