Swapping of Two Numbers - C program to Swap two numbers
Learn C - C tutorial - c program to Swap two numbers - C examples - C programs
C program to Swap two numbers
- Swapping means Interchanging.
- To swap we need to declare a third variable which is an temporary variable.
- For example: you have taken two variables a and b where a = 4 and b = 5, then before swapping a = 4, b = 5 after swapping a = 5, b = 4.