Discussion in 'C' started by parthahir, Aug 29, 2010.
how can i interchang any 2 numbers????
with out taking any variable?????
plz ans me its urjent
One way is to use the xor operation, although it doesn't always work:
You should find out under what circumstances it doesn't work (by testing that is, not by posting "give me coding plz" somewhere).
Yet another way is
a = a + b;
b = a - b;
a = a - b;
Separate names with a comma.