ProAnswers.org

Discuss on pointer arithmetic?

1- Assignment of pointers to the same type of pointers.

2- Adding or subtracting a pointer and an integer.

3-subtracting or comparing two pointer.

4-incrementing or decrementing the pointers pointing to the elements of an array. When a pointer

to an integer is incremented by one , the address is incremented by two. It is done automatically

by the compiler.

5-Assigning the value 0 to the pointer variable and comparing 0 with the pointer. The pointer

having address 0 points to nowhere at all.