You are viewing a single comment's thread. Return to all comments →
We can also do *b = abs(*a - (2 * (*b))) to avoid the temp variable. Although perhaps that is less readable than using a temp variable. :D
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 →
We can also do *b = abs(*a - (2 * (*b))) to avoid the temp variable. Although perhaps that is less readable than using a temp variable. :D