User Tools

Site Tools


cplusplus:pointers_3_slides

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cplusplus:pointers_3_slides [2021/10/24 02:43] – [Pointer arithmetic] mithatcplusplus:pointers_3_slides [2021/10/24 02:43] – [Pointer arithmetic] mithat
Line 51: Line 51:
 ===== Pointer arithmetic ===== ===== Pointer arithmetic =====
  
-  * Pointer arithmetic works differently from normal arithmetic.+  * Pointer arithmetic works differently than normal arithmetic.
   * ''+'',  ''+='', ''-'', ''-='', ''++'', ''--'' do math in terms of the size of the pointed data type.   * ''+'',  ''+='', ''-'', ''-='', ''++'', ''--'' do math in terms of the size of the pointed data 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.   * E.g., adding 1 to a pointer makes it point to the next block of memory corresponding to the size of the underlying type.
cplusplus/pointers_3_slides.txt · Last modified: 2021/10/24 02:46 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki