We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Pointer
- Discussions
Pointer
Pointer
Sort by
recency
|
1110 Discussions
|
Please Login in order to post a comment
void update(int *a,int *b) { // Complete this function int c = 0; int d = 0;
}
void update(int *a,int *b) {
}
int main() { int a, b; int *pa = &a, *pb = &b;
}
void update_function(int *a, int *b){ int sum = *a + *b; int diff = *a - *b; if (diff < 0) diff = -diff; printf("%d\n%d", sum, diff);
}
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int a,b; scanf("%d %d", &a, &b); update_function(&a, &b); return 0; }