swap without using temp variable
2 posters
Page 1 of 1
swap without using temp variable
another solution may be..
a=a*b;
b=a/b; (b!=0)
a=a/b;
a=a*b;
b=a/b; (b!=0)
a=a/b;
gunendu- Posts : 2
Join date : 2008-09-24
Re: swap without using temp variable
bhai gunendu....
this will work only in the case of intergers.
this will work only in the case of intergers.
vikas- Posts : 2
Join date : 2008-09-23
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum