Asked in
C Programming

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

Answer

User Avatar
Wiki User
May 13, 2012 11:52AM

Error message, mainly. The following operations are legal:

ptr + integer (pointer)

ptr - integer (pointer)

ptr - ptr (integer)