Adding Two Numbers Using Pointers in C

We can easily add two numbers by using C program but in this article we are going to perform addition of two numbers using pointer.

Pointers in C

Pointers in C are the variables that stores memory addresses as their values. Pointers point to the location of another variable in the memory, Enabling access and maipulation of data store in that memory address.

In C programming language we can decalre a pointer by using asterisk(*) symbol, indicating that it hold the memory address of a specific data type.

Adding Two Numbers Using Pointer

Output

Adding Two Numbers Using Pointer

In the above C program we perform addition of two numbers using pointers.

Happy Coding

See Also

Leave a Comment