You can perform a limited number of arithmetic operations on pointers. These operations are:
Which operation can be performed on pointers?
The different operations that can be possibly performed on pointers are: Incrementing/Decrementing a pointer. Addition/Subtraction of a constant number to a pointer. Subtraction of one pointer from another.
Can we perform arithmetic operations on pointers?
We can perform arithmetic operations on the pointers like addition, subtraction, etc. However, as we know that pointer contains the address, the result of an arithmetic operation performed on the pointer will also be a pointer if the other operand is of type integer.