Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <unistd.h>
  4. #include <stdlib.h>
  5. #include <sys/types.h>
  6.  
  7.  
  8. int main(int argc, char **argv) {
  9.  
  10. char *buffer = malloc(16*sizeof(char));
  11. char *buffer2 = malloc(16*sizeof(char));
  12.  
  13. buffer2[2] = 'A';
  14.  
  15. for (int i = 0; i< 60; i++) {
  16. buffer[i] = 'B';
  17. printf("%i, %c\n", i, buffer2[2]);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement