You are viewing a single comment's thread. Return to all comments →
void update(int *a,int *b) { // Complete this function int *c,*d; *c=*a; *a=*c + *b; *b = abs(*c - *b);
}
int main() { int a, b; int *pa = &a; int *pb = &b;
scanf("%d %d", &a, &b); update(pa, pb); printf("%d\n%d", 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 →
include
include
void update(int *a,int *b) { // Complete this function
int *c,*d; *c=*a; *a=*c + *b;
*b = abs(*c - *b);
}
int main() { int a, b; int *pa = &a; int *pb = &b;
}