swap two numbers

J

Joona I Palaste

Abhishek Jha said:
hello malcolm,
You have written nice function to swap, but what is this swap().

And besides, how could it ever work when you pass the ints themselves
and not pointers to them?
Perhaps it's not a function at all, but instead a macro.

--
/-- Joona Palaste ([email protected]) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"A friend of mine is into Voodoo Acupuncture. You don't have to go into her
office. You'll just be walking down the street and... ohh, that's much better!"
- Stephen Wright
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Encryption 6
Quick sort algorithm 1
SENTINEL CONTROL LOOP WHEN DEALING WITH TWO ARRAYS 1
evaluate a generic swap function 33
Swap () 3
swap using pointers 5
OST to Zimbra Converter Tool 0
A question about swap 7

Members online

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,383
Latest member
EzraGiffor

Latest Threads

Top