Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- void f(void);
- int main(void)
- {
- f();
- }
- void f(void)
- {
- int *x = malloc(10 * sizeof(int));
- x[10] = 50;
- printf("malloced %i\n",x[10]);
- // free(x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement