1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice


Discussion in 'C' started by anilk501, Sep 13, 2007.

  1. anilk501

    anilk501 New Member

    1) write generic swap macro used to swap data b/w any type: swap 2 int ,float or char etc.
  2. listendinesh

    listendinesh New Member

    You can do it without temp var.
    #define SWAP(a,b)  a=a+b;b=a-b;a=a-b;

Share This Page