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