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
cplusplus:pointers_1 [2019/03/11 19:44] – [Pointer operators] mithatcplusplus:pointers_1 [2019/03/28 16:24] (current) – [Pointer operators] mithat
Line 162: Line 162:
  
 === Indirection/dereferencing operator === === Indirection/dereferencing operator ===
-The **indirection** or **dereferencing** operator, ''*'', returns the value of what its operand points to. For example, if ''myPtr'' points to variable ''y'', ''*myPtr'' returns the value stored in ''y''.+The **indirection** or **dereferencing** operator, ''*'', accesses the value of what its operand points to. For example, if ''myPtr'' points to variable ''y'', ''*myPtr'' returns the value stored in ''y''.
 <code cpp> <code cpp>
 int y = -1;       // declare y and initialize its value int y = -1;       // declare y and initialize its value
cplusplus/pointers_1.txt · Last modified: 2019/03/28 16:24 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki