How to Swap Two Numbers in C without Using Third Variable.
Follow these 3 methods :
Write C program to swap two numbers using
- + and – operators.
- * and / operators.
- XOR operator.
Test Case: a=10 and b=40
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.