Swap variables without using temp
2 posters
Page 1 of 1
Re: Swap variables without using temp
This only works for integer, there is another version which work for float
a = a+b;
b = a-b;
a = a-b;
a = a+b;
b = a-b;
a = a-b;
viterbi- Posts : 32
Join date : 2011-09-03
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|