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

How do you increase the capacity of an arraylist?

505


Explain the types of linked lists.

568


What is data structure operations?

615


Is array a data structure?

508


What is adt and its advantages?

570






How can someone display singly linked list from first to last?

512


What are the 3 types of measurement?

552


Define a relation?

558


How does dynamic memory allocation help in managing data?

1078


Does hashmap preserve insertion order?

489


Can we change load factor of hashmap?

495


Can arraylist be empty?

473


Define distributed query and linked server?

567


What is merge sort and how it works?

500


Is treemap thread safe?

519