Guest User

Untitled

a guest
Nov 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. void* ptr = NULL;
  7. for(int i = 0; i < 10; ++i)
  8. {
  9. ptr = realloc(ptr, 0);
  10. printf("ptr: %p\n", ptr);
  11. }
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment