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

Answer Posted / poornakala

you ca implement stack with union datatype... u may think
of structures.. but struct use storin of all values and mem
allocated for all in each.. but in union only one at a
time... this is right i think...

Is This Answer Correct ?    61 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why hashtable is faster than arraylist?

533


When will we get ArrayStoreException?

744


Which is the parent class of sortedset class?

543


What is a simple graph?

525


Write an algorithm through which the inserting and deleting of elements can take place in circular queue?

512






How dynamic arrays are created?

473


What is linked list in data structure?

538


What are the difference between malloc() and calloc()?

553


Why is hashmap faster than treemap?

486


What is a tech stack?

456


Do you know what is linear search?

506


What do you know about traversal in linked lists?

469


What is difference between hashmap and hashset?

461


Which is best book for data structures?

516


Why do we use dynamic arrays?

466