C program to swap two numbers without using temporary variable

Here is simple program to swap tow numbers without actually using temp variable.

Output:

Enter first number: 12
Enter second number: 36
After swapping, firstNum = 36
After swapping, secondNum = 12

That’s all about swapping two numbers without using temp variable.

Leave a Reply

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