Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

swap of two numbers without using third variable

a=20;
b=40;
a=a+b;  
b=a-b;
a=a-b;  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #swap #numbers #variable
ADD COMMENT
Topic
Name
6+2 =