Why alloca() Is Discouraged in C: Stack vs Heap Memory Explained | CodeTrail