You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b) { *a = *a + *b; *b = *a - *b - *b;//here *a already changed into *a+*b; for this we have to write *b=*a-*b-*b if (*b < 0) {*b = *b * -1;} }
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 →