1 / 28

FIGURES FOR CHAPTER 14 POINTERS

This chapter in the book includes: Introduction 14.1 The Concept of Pointers 14.2 Breadth: Memory 14.3 Arrays and Pointers 14.4 Dynamic Memory Allocation 14.5 Pointer Data Members 14.6 User-Defined Types 14.7 Pointers and Structures 14.8 Function Pointers

bryony
Télécharger la présentation

FIGURES FOR CHAPTER 14 POINTERS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. This chapter in the book includes: Introduction 14.1 The Concept of Pointers 14.2 Breadth: Memory 14.3 Arrays and Pointers 14.4 Dynamic Memory Allocation 14.5 Pointer Data Members 14.6 User-Defined Types 14.7 Pointers and Structures 14.8 Function Pointers Programming and Debugging Hints Key Terms Summary Review Questions Laboratory FIGURES FORCHAPTER 14POINTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter.

  2. Figure 14.1: Memory after declaration and assignment statements involving a pointer

  3. Figure 14.2: Representation of memory after ptr = &v;

  4. Figure 14.3: Memory after execution ofeither statement

  5. Figure 14.4: Memory after execution of ptr = NULL

  6. Table 14.1: Summary of Meaning of Code for Declaration-Initializations int v = 5, *ptr = &v;

  7. Figure 14.5: Memory after execution of declaration-initialization

  8. Figure 14.6: Effect on memory of p = q;

  9. Figure 14.7: Effect on memory of q = &k;

  10. Figure 14.8: Memory after execution of p = q;

  11. Figure 14.9: Memory after execution of the following statements

  12. Figure 14.10: Memory after execution of *p = 7;

  13. Figure 4.11:Flow of information in a system with a cache

  14. Figure 14.12: Storage of an integer array in a byte-addressable computer with each integer in 2 bytes

  15. Figure 14.13: Memory after declaration-initialization in Example 14.4

  16. Figure 14.14: Storage of an integer array in a byte-addressable computer, with each integer in 2 bytes and access through pointers

  17. Figure 14.15: Structure chart for program of Example 14.5

  18. Figure 14.16: Action ofGreetings hi(“main”);

  19. Figure 14.17: Action of the default copy constructor

  20. Figure 14.18: Action of hi.asterisk() indirectly affects cpy

  21. Figure 14.19: Action of user-defined copy constructor

  22. Figure 14.20: Action of default assignment operator

  23. Figure 14.21: Linked list of nodes with grocery information

  24. Figure 14.22: Linked list after declaration of head and allocation of a first node

  25. Figure 14.23: Linked list after filling the first node

  26. Figure 14.24: Memory after allocation of the second node in the linked list

  27. Figure 14.25: Action of *p++ or *(p++)

  28. Figure 14.26: Action of (*p)++

More Related