Dynamic Memory Allocation Review
- You have powerful tools you can use when allocating memory dynamically:
sizeof, malloc, calloc, realloc, andfree. - Take precautions when using the actual memory allocation functions for memory leaks, especially with realloc. Remember, always check for NULL with malloc! Your programs will thank you for it.