Home » C Programming » Arithmetic Operation With Pointer

Arithmetic Operation With Pointer

In a C programming, we can also perform arithmetic operations with pointer. There are four arithmetic operators that can be performed with pointers:

  • Increment (++)
  • Decrement ( — )
  • Addition ( + )
  • Subtraction ( – )

 

Increment a Pointer

Example: Write a program in c language, to increments the variable pointer to access each succeeding element of the array.

OUTPUT

Managed by MochaHost - Fast & Easy WordPress Hosting