cplusplus:pointers_3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cplusplus:pointers_3 [2015/12/31 20:51] – mithat | cplusplus:pointers_3 [2016/03/05 23:21] – [Array arithmetic] mithat | ||
---|---|---|---|
Line 101: | Line 101: | ||
int *vPtr = v; | int *vPtr = v; | ||
- | for(int i = 0; i < 5; i++) | + | for (int i = 0; i < 5; i++) |
{ | { | ||
cout << *vPtr << endl; | cout << *vPtr << endl; | ||
Line 154: | Line 154: | ||
^ Operation | ^ Operation | ||
- | |< | + | |Increment |
- | |< | + | |Decrement |
- | |< | + | |Arithmetic |
- | |< | + | |Compound assignment |
valptr += 2; // points at 11</ | valptr += 2; // points at 11</ | ||
- | |< | + | |Pointer subtraction |
cplusplus/pointers_3.txt · Last modified: 2016/03/05 23:27 by mithat