C program to swap two numbers using Bitwise Operators

Editorial Staff - - C Programming Tutorial


In this program, we are going to share a C program to swap two numbers using Bitwise Operators. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to swap two numbers using Bitwise Operators with the output.

We have designed this program for beginners for learning purpose. Copy below c program and execute it with c compiler to see the output of the program.

Output

Enter two numbers:131
89
The numbers before swapping are Number1= 131 Number2 = 89
The numbers after swapping are Number1= 89 Number2 = 131


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari