Thread
:
How can we swap two
View Single Post
#
6
(
permalink
)
08-14-2008, 12:19 PM
sowmya_vvns
Junior Member
Join Date: Aug 2008
Posts: 11
int a=10,b=20;
a=a+b;
b=a-b;
a=a-b;
printf("%d %d",a,b);
this code will work fine whether a >b or a
sowmya_vvns
View Public Profile
Send a private message to sowmya_vvns
Find all posts by sowmya_vvns