Give a reason why you may need to dynamically allocate memory.
Anonymous
If the data you are storing is quite large, there may not be enough space on the stack, where statically allocated memory resides. In this case, you can dynamically allocate memory on the heap, which typically has much more space available at runtime.
Check out your Company Bowl for anonymous work chats.