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
- Pointers in C
- Discussions
Pointers in C
Pointers in C
Sort by
recency
|
639 Discussions
|
Please Login in order to post a comment
include
int main(){ int a,b; scanf("%d %d", &a,&b); int sum, diff; sum = a+b; if(a>b){ diff=a-b; } else { diff=b-a; }
}
void update(int *a,int *b) {
}
int main() { int a, b,c; int *pa = &a, *pb = &b;
}
void update(int *a,int *b) { // Complete this function int p,q; p=*a+*b; q=*b-*a; *a=p; *b=abs(q);
}
int main() { int a, b; int *pa = &a, *pb = &b;
}
**
include
void update(int *a,int *b) { int sum = *a + *b; int diff = *a - *b; if (diff < 0) { diff = -diff; } *a = sum; *b = diff; }
int main() { int a, b; int *pa = &a, *pb = &b;
} **