You are viewing a single comment's thread. Return to all comments →
a simple solution:
#include <cmath> void update(int *a,int *b) { int temp = *a; *a = *a + *b; *b = abs(temp - *b); }
Pointer
You are viewing a single comment's thread. Return to all comments →
a simple solution: