You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b) { int x=*a + *b; int diff=*a-*b; int y=(diff<0 ? -diff : diff; *a=x; *b=y; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →
Using Ternary Operator