About this document
C Programs for Swapping Numbers by Rajakumar Ramalingam is a document available to read on EtoBox.
There are four different ways to swap two numbers in C programming: 1. Using a temporary variable and pass by value. 2. Without using a temporary variable by adding and subtracting the numbers. 3. Using pass by reference by passing the addresses of the variables. 4. Using bitwise XOR gates.
- Author
- Rajakumar Ramalingam
- Language
- EN