Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int *ptr_one;
- ptr_one = (int *)malloc(sizeof(int));
- if (ptr_one == 0) {
- printf("ERROR: Out of memory\n");
- return 1;
- }
- *ptr_one = 25;
- printf("%d\n", *ptr_one);
- free(ptr_one);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement