How to Swap Two Numbers Without Using Any Third Variable in C Programming

| Last Updated: | In: C Programming Tutorial


In this program, we will explain how to swap two numbers without using any third variable using c programming language.

After Swapping: x = 20, y = 10

C++ Program for Number Swapping

| Last Updated: | In: C++ Tutorial


A Few days back when I was in Delhi, one student asked me how to write a c Plus Plus program to swap two numbers by using the temp variable. I had make understand the logic behind this program to that student and said I will write this program for you. This is a very …