You are viewing a single comment's thread. Return to all comments →
solving with 2s compliment
void update(int *a,int *b) { int sum = *a + *b; int diff = *a - *b; *a = sum; if((diff) < 0) *b = (~diff)+1; else *b = diff; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointers in C
You are viewing a single comment's thread. Return to all comments →
solving with 2s compliment