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 / 235.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  616KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: Passing Parameters to Functions 235 In the program param.c. after changit() is called both the function main() and the function changi it are active The diagram Figure indicates the two separate execution environments for these functions The values for each vari- able indicate the original values and trace the changes that occur. Execution Environment for main) int ptr Execution Environment for charg t() changit int ptr Figure 4-5 The lines through values in the boxes illustrate the changes that take place dmp ing execution of the program. Notice that the value of x in ma in() was not touched. The modification was made to the copy of that was passed to chang: Notice also that the value of int pt ITI ma in() will not be touched, but the value int ptr (that is will be changed Learning Activi ...