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

What happens if we put a key object in a hashmap which exists?

681


Can sets contain duplicates?

598


Write a program for reversing the Single Linked List?

886


Where the data structures are used?

721


What are the major data structures used in the rdbms?

770


How does quicksort partition work?

724


Write a program to reverse a single linked list.

718


What is worst case complexity algorithm?

673


What is a cycle or a circuit?

805


What do you mean by priority queue?

679


Why do we Use a Multidimensional Array?

664


Can we use ordered set for performing binary search?

708


Why quicksort is faster than merge sort?

686


How to find the duplicate in an array?

702


Describe avl tree or height balanced binary search tree.

685