Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 337 Bytes

File metadata and controls

15 lines (13 loc) · 337 Bytes

Swap Two Numbers

Practice
 pair<int, int> get(int a, int b){
        //complete the function here
        pair<int,int> p;
        a=a^b;
        b=b^a;
        a=a^b;
        p.first=a;
        p.second=b;
        return p;
        
    }