c program for swapping two numbers without using third variable.



here, lets take an example-

a=a+b
a=3+5=8

b=a-b
b=8-5=3

a=a-b
a=8-3=5

Thus, swapping done in this way.

Comments

Popular posts from this blog

Java Program to print any matter

Line

putpixel in c