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
|
1168 Discussions
|
Please Login in order to post a comment
#includeinclude
include
//by waaree (Anuwaar Abdul) using namespace std; void update(int *a, int *b){ int temp = *a; *a = *a + *b; *b = abs(temp-*b); * cout <<*a<>a>>b; update(pa,pb); return 0; }
include
include
include
//by waaree (Anuwaar Abdul) using namespace std; void update(int *a, int *b){ int temp = *a; *a = *a + *b; *b = abs(temp-*b); cout <<*a<>a>>b; update(pa,pb); return 0; }
I like how it helps build a solid foundation for more advanced topics like dynamic memory and data structures, Playingexchange Login
include
void update(int *a,int *b) { // Complete this function
*a = *a + *b; if (a-2(*b) <0){ *b = (a - 2(b))(-1); }else{ *b = a - 2(*b); } }
int main() { int a, b; int *pa = &a, *pb = &b;
}