Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
- #include <stdlib.h>
- #include <sys/types.h>
- int main(int argc, char **argv) {
- char *buffer = malloc(16*sizeof(char));
- char *buffer2 = malloc(16*sizeof(char));
- buffer2[2] = 'A';
- for (int i = 0; i< 60; i++) {
- buffer[i] = 'B';
- printf("%i, %c\n", i, buffer2[2]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement