Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int *p = (int*)malloc(sizeof(int));
- int *q = (int*)realloc(p, sizeof(int));
- *p = 1;
- *q = 2;
- if (p == q)
- printf("%d %d\n", *p, *q);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement