###### Asked in C Programming

C Programming

# What is the effect of various arithmetic operators on a pointers?

## Answer

###### Wiki User

###### May 13, 2012 11:52AM

Error message, mainly. The following operations are legal:

ptr + integer (pointer)

ptr - integer (pointer)

ptr - ptr (integer)

## Related Questions

###### Asked in Math and Arithmetic

### What happen if arithmetic progressions does not exist?

If arithmetic progression did not exist you would not be able to
count beyond 1, 2. Since 3 is the next number in the arithmetic
progression. In effect there would be no arithmetic and no
mathematics.
And before you cheer at the thought of one less subject to
study, there would be no technology. You would still be living in a
cave and have to do everything for yourself - since any kind of
trade requires valuing what you have to "sell" or "buy" and that
requires some form of counting.