0

Realloc stack? 🤔

Is there a way to allocate more memory for the stack? Is it possible by just allocating some memory and replacing stack pointer with a pointer to it?💡 Share your thoughts! 😉

7th Jun 2020, 12:35 AM
Max Charlington
Max Charlington - avatar
1 Resposta
0
If the situation arises that you need more memory for the stack than you needed before then use a Linked list data structure as a stack. It saves you from allocating new memory.
7th Jun 2020, 2:59 AM
NEZ
NEZ - avatar