You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b) { int sum= (*a)+(*b); int diff= abs((*a)-(*b)); (*a)=sum; (*b)=diff; } this may help :)
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 sum= (*a)+(*b); int diff= abs((*a)-(*b));
(*a)=sum; (*b)=diff; } this may help :)