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
|
1181 Discussions
|
Please Login in order to post a comment
size optimal solution void update(int *a,int *b) { *a = *a + *b; *b = std::abs(a - 2(*b)); }
void sum(int *,int *); void diff(int *,int *);
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
int a,b;
}
void sum(int *x,int *y) { int sum = *x + *y; cout<
include
include
using namespace std;
void update(int *a, int *b) { int sum = *a + *b; int diff = abs(*a - *b);
}
int main() { int a, b; cin >> a >> b;
* }****
include
include
using namespace std;
void update(int *a, int *b) { int sum = *a + *b; int diff = abs(*a - *b);
}
int main() { int a, b; cin >> a >> b;
}