80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
7. Pointer Arithmetic
1.
2. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
Subtraction of integer to a pointer
Subtracting two pointers of the same type
3. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p++; / p--;
4. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p++; / p--;
addr(p+i) = addr(p) + (sizeof(T)* i)
5. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p = p+3;
6. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p = p+3;
addr(p+i) = addr(p) + (sizeof(T)* i)
7. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p = p-3;
8. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p = p-3;
addr(p+i) = addr(p) - (sizeof(T)* i)
9. Increment/Decrement of a Pointer
Addition of integer to a pointer
Subtraction of integer to a pointer
int
*p1,*p2;
Subtraction of integer to a pointer
Subtracting two pointers of the same type
p1 – p2