You are viewing a single comment's thread. Return to all comments →
int update(int *a,int *b){ int *temp; *a=*a+*b; *temp=*a-*b; *b=*temp-*b; if (*b<0) *b=-*b; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointers in C
You are viewing a single comment's thread. Return to all comments →
int update(int *a,int *b){ int *temp; *a=*a+*b; *temp=*a-*b;
*b=*temp-*b; if (*b<0) *b=-*b; return 0; }