Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stack vs Heap-- stack de-allocates and is fast but cannot be resized; heap has to be allcoated and can memory leak
- malloc(size): generates array of particular size
- calloc(num,size): generates array of num elements, each of size size, and initializes everything to 0
- realloc(ptr, size): reallocates size at ptr
- free(ptr): frees memory of pointer
- Carl lives in a house, dug points to carl
- int carl = 1; int *dug = &carl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement