Computer Science, asked by csnnikitha3289, 1 year ago

How is it possible to insert different type of elements in stack?

Answers

Answered by v917
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