User Tools

Site Tools


cplusplus:pointers_1

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cplusplus:pointers_1 [2018/02/24 23:52] – [Pointer operators] mithatcplusplus:pointers_1 [2019/03/11 19:44] – [Pointer operators] mithat
Line 11: Line 11:
  
 ===== Pointer variables ===== ===== Pointer variables =====
-You can think of a **pointer variable** as a variable that stores the address of some other variable.+You can think of a **pointer variable** as a variable that stores the base address of some other variable.
  
 And? And?
Line 177: Line 177:
 cout << y;        // prints 7</code> cout << y;        // prints 7</code>
  
-You can think of the indirection/dereferencing operator as meaning, “the_thing_at_the_end_of”, as in:+You can think of the indirection/dereferencing operator as meaning, “the_thing_at_the_end_of_”, as in:
  
-<code>the_thing_at_the_end_of__myPtr = 7;</code>+<code>the_thing_at_the_end_of_myPtr = 7;</code>
  
 The ''*'' and ''&'' operators complement each other. In other words, the following expressions will all evaluate as true: The ''*'' and ''&'' operators complement each other. In other words, the following expressions will all evaluate as true:
cplusplus/pointers_1.txt · Last modified: 2019/03/28 16:24 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki