freelanceprogrammers.org Forum Index » C

Re: (query)


View user's profile Post To page top
sudhanshu_sa... Posted: Tue Aug 26, 2003 3:04 pm


Joined: 11 Jul 2003

Posts: 2
Re: (query)
Hi,
I think U know this too but just mailed in case.
U may say it is same as two variable swapping
A = A EXOR B
B = A EXOR B
A = A EXOR B
 

-----Original Message-----From: kari basaveswara [mailto:karibasava_007@...]Sent: Tuesday, August 26, 2003 11:30 AMTo: Programmers-Town@yahoogroups.comSubject: *(&Programmers-Town&)* (query)Hello guys1) this is an easy question but good one    i want to know how many types u can swap 2 numbers.   i know ten methods.but atleast i want 30 can any   one help me.i know things such as by using a varibale u can swap 2no. without using a varibale u can swap 2 no.and byusing shift operator u can swap 2 no.something intereesing u send me.________________________________________________________________________Yahoo! India Promos: Win TVs, Bikes, DVD players & more!Go to http://in.promos.yahoo.comKeep posting Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help