+ 6
Stack in C
Hello, In C why do we want stack's push and pop functions? In examples there were not stack size control and how it happen, anyone can help me?
2 Antworten
+ 2
It doesnt have size control becsuse in stack you can store different types. Is better to use lists and do this sizeof(list)/sizeof(list[0]) for every list to find the size of elements in list.
+ 1
Rewa Mathur Thank you, I saw such codes and I know how it work, I want to know why and when do we need to allocate stack memory.