I remember the time just learning C language, in general, there will be an example in some textbooks which asks us to write a function to swap two int-type integers. As we know, there are many ways to achieve this requirement. There are some common methods and also some skillful approaches. As a review, some of the methods described as below:
[Approach 1]
[Approach 2]
[Approach 3]
[Approach 4]