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

By: Prem Tiwari | 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

By: Prem Tiwari | 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 …