Menu Close

Program to swap value of two variables using pointer

Codes:

https://gist.github.com/programmingfaster0226/400b3d68c505ff79c00d7a4b9d3aff06

outputs:

Enter two numbers:   3     9

Before swapping  a=3   b=9

After   Swapping  a=9   b=3

Leave a Reply

Your email address will not be published. Required fields are marked *