You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b) { int num1 = (*a); int num2 = (*b); num1 = (*a) + (*b); num2 = (*a) - (*b); if (num2 < 0) { num2 = -num2; } *a = num1; *b = num2;
}
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 →
void update(int *a,int *b) { int num1 = (*a); int num2 = (*b); num1 = (*a) + (*b); num2 = (*a) - (*b); if (num2 < 0) { num2 = -num2; } *a = num1; *b = num2;
}