You are viewing a single comment's thread. Return to all comments →
int sum , diff; sum = *a +*b; diff = (*a > *b) ? (*a - *b) : (*b - *a); *a = sum; *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 →
int sum , diff; sum = *a +*b; diff = (*a > *b) ? (*a - *b) : (*b - *a); *a = sum; *b = diff;