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
|
679 Discussions
|
Please Login in order to post a comment
Great explanation of pointers in C! 🖥️ Understanding how pointers work is essential for managing memory and modifying variables within functions. Betbricks7 com Login
include
include
void update(int *a, int *b) { int sum = *a + *b;
int diff = abs(*a - *b); *a = sum;
*b = diff; }
int main() { int a, b; scanf("%d %d", &a, &b); update(&a, &b); printf("%d\n%d\n", a, b);
}
include
void update(int *a,int *b) { int sum,diff; sum = *a+*b; diff = abs(*a-*b); *a = sum; *b = diff;
}
int main() { int a, b; int *pa = &a, *pb = &b;
}
include
include
void update(int *a,int *b) {
} int main() { int a, b;
}