You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b){ int p,q; p = *a; q = *b; *a = p+q; *b =p-q;
cout<<abs(*a)<<endl; cout<<abs(*b)<<endl;
} int main() {
int a,b; cin>>a>>b; update(&a,&b); return 0;
}
`
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 p,q; p = *a; q = *b; *a = p+q; *b =p-q;
} int main() {
}
`