Pointers in C

  • + 9 comments
    void update(int *a,int *b) {
        int temp = *a;
        *a = *a + *b;
        *b = temp > *b ? (temp - *b) : (*b - temp);
    }