Advertisement
amitrk23

Untitled

Nov 12th, 2019
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <malloc.h>
  4.  
  5. #define SIZE 10
  6. #define TIMES 30000
  7. int main(int argc, char *argv[]){
  8. char *p, *q;
  9. char *a, *b, *c;
  10.  
  11. int i = 0 ;
  12. a = malloc(5);
  13. for (i = 0 ; i < 10; i++){
  14. b = malloc(1);
  15. }
  16. c = malloc(4);
  17. free(a);
  18. free(c);
  19. a = malloc(4);
  20.  
  21. p = malloc(17);
  22. p[0] = p[16] = 17;
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement