cplusplus:pointers_1_slides
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cplusplus:pointers_1_slides [2019/03/28 16:23] – mithat | cplusplus:pointers_1_slides [2021/10/19 19:20] – [Pointers 1 slides] mithat | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ====== Pointers 1 ====== | + | ====== Pointers 1 slides |
Pointer fundamentals, | Pointer fundamentals, | ||
Deitel, Harvey M., and Paul J. Deitel. " | Deitel, Harvey M., and Paul J. Deitel. " | ||
Mithat Konar\\ | Mithat Konar\\ | ||
- | March 28, 2019 | + | October 19, 2021 |
===== Introduction ===== | ===== Introduction ===== | ||
Line 23: | Line 23: | ||
===== Pointer hardware model ===== | ===== Pointer hardware model ===== | ||
- | Assume an '' | + | * Assume an '' |
^ Variable name ^ Memory location ^ Memory contents across all four bytes (32 bits)^ | ^ Variable name ^ Memory location ^ Memory contents across all four bytes (32 bits)^ | ||
Line 31: | Line 31: | ||
|::: | |::: | ||
- | The address of '' | + | * The address of '' |
===== Pointer hardware model ===== | ===== Pointer hardware model ===== | ||
- | A //pointer// variable set to point to '' | + | |
+ | * A //pointer// variable set to point to '' | ||
^ Variable name ^ Memory location ^ Memory contents across all 8 bytes (64 bits) ^ | ^ Variable name ^ Memory location ^ Memory contents across all 8 bytes (64 bits) ^ | ||
- | |'' | + | |'' |
|::: | |::: | ||
|::: | |::: | ||
|::: | |::: | ||
- | The //value// of the pointer variable is the base address | + | * The //value// of a pointer variable is the base address |
===== Pointer visual model ===== | ===== Pointer visual model ===== |
cplusplus/pointers_1_slides.txt · Last modified: 2021/10/19 19:29 by mithat