Problem
Design and implement a stack class (i.e. struct with accompanying functions). The interface should allow storing any data type including complex structures. Describe different implementation strategies and compare their pros and cons. What is the best approach in an embedded real-time system? What is the best approach when memory resources are very limited? You can use "malloc" and "free" functions.