Allocating memory on stack.

We’ve done memory allocation on heap, but ever thought of doing this on stack! Well why do we need to allocate memory on stack if we have sufficient heap space left with us. A function called _alloca is provided just for this purpose. Reasons why I use _alloca is, because the memory allocated is small […]
Continue reading…