Graphical Analysis of Pass-By-Value and Pass-By-Reference

Figures 8.88.9 analyze graphically the execution of Fig. 8.6 and Fig. 8.7, respectively. In the diagrams, the values in rectangles above a given expression or variable represent the value of that expression or variable. Each diagram’s right column shows functions cubeByValue (Fig. 8.6) and cubeByReference (Fig. 8.7) only when they’re executing.

Image
Image

Fig. 8.8. Pass-by-value analysis of the program of Fig. 8.6.

Image
Image

Fig. 8.9. Pass-by-reference analysis of the program of Fig. 8.7.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.254.7