You are viewing a single comment's thread. Return to all comments →
You can do it with just one variable too.
void update(int *a,int *b) { int temp = *a; *a = *a + *b; (*b > temp) ? *b = ( temp - b ) -1 : *b = temp - *b; }
void update(int *a,int *b)
{ int temp = *a;
*a = *a + *b;
(*b > temp) ? *b = ( temp - b ) -1 : *b = temp - *b; }
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 →
You can do it with just one variable too.