Archive

Posts Tagged ‘Programming Logic’

Swap 2 variable content without Temporary variable

October 24th, 2007 Hitesh Agrawal 11 comments

Whenever it comes to swap the content(integer, float data) of 2 variables in any programming languages we often create a temporary variables that will the temporary data before swapping. But I’ll show you a technique where you can swap without creating an extra temporary variable.
Read more…

Categories: Programming Tags: