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

Which collection is fail safe?

494


Explain heapsort. What is its complexity?

584


Is hashmap synchronized?

511


Which algorithm is used in arrays sort?

480


Differentiate between hashset and treeset.

551






Can we give size to arraylist?

510


Why do we need algorithm?

495


What do you mean by articulation point?

575


what is traversal in linked lists?

579


Define disjoint set adt?

537


What is the difference between hashset and treeset?

512


Which interfaces are implemented by linkedhashset?

523


What is data structure explain in detail?

519


Why is null not allowed in concurrenthashmap?

465


Where is insertion sort used?

507