• + 1 comment

    I am new at coding and I don't understand pointers very well, is there any source so I can understand better...

    // Complete this function
        int refa = *a; //referance for a and b
        int refb = *b;
        if (refa > refb) {
        *b = refa - refb;
        }
        else { //a < b
        *b = refb - refa;
        }
        *a = refa + refb;