How is it possible to insert different type of elements in stack?
Answers
Answered by
0
Different elements can be inserted into a stack. This is possible by implementing union / structure data type. It is efficient to use union rather than structure, as only one item's memory is used at a time.
Similar questions