• + 0 comments

    void update(int *a,int *b) { // Complete this function int c = 0; int d = 0;

    c = *a + *b;
    if(*a > *b) {
        d = *a - *b;
    }
    else{
        d = *b - *a;
    }
    *a = c;
    *b = d;
    

    }