cplusplus:pointers_3_slides
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cplusplus:pointers_3_slides [2021/10/24 02:44] – [Pointers 3 slides] mithat | cplusplus:pointers_3_slides [2021/10/24 02:46] (current) – [Pointer arithmetic: addition] mithat | ||
---|---|---|---|
Line 54: | Line 54: | ||
* '' | * '' | ||
* E.g., adding 1 to a pointer makes it point to the next block of memory corresponding to the size of the underlying type. | * E.g., adding 1 to a pointer makes it point to the next block of memory corresponding to the size of the underlying type. | ||
- | |||
- | ===== Pointer arithmetic: addition ===== | ||
- | * Adding 1 to a pointer makes it point to the next block of memory corresponding to the size of the underlying type. | ||
Line 82: | Line 79: | ||
</ | </ | ||
- | ===== Pointer arithmetic: | + | ===== Pointer arithmetic: |
Subtracting one pointer from another returns the number of elements between two addresses: | Subtracting one pointer from another returns the number of elements between two addresses: |
cplusplus/pointers_3_slides.txt · Last modified: 2021/10/24 02:46 by mithat