Swapping two numbers in the C programming language means exchanging the values of two variables. Suppose you have two variables var1 & var2. Value of var1 is 20 & value of var2 is 40. So, after swapping the value of var1 will become 40 & value of var 2 will become 20.