10 Replies Latest reply: Jan 7, 2005 2:58 AM by 798906 RSS

    How do you swap two variables A and B without using a 3rd variable?

    807596
      How do you swap two variables A and B without using a 3rd variable? No function or method allowed.



      For example:



      Given:

      A = 35

      B = 10



      Result

      A = 10

      B = 35