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 revision Previous revision
cplusplus:pointers_1 [2019/03/11 19:44]
mithat [Pointer operators]
cplusplus:pointers_1 [2019/03/28 16:24] (current)
mithat [Pointer operators]
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.1552333484.txt.gz · Last modified: 2019/03/11 19:44 by mithat