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

Answer Posted / touchriverian

guess that union is the best option.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In Data Structure, write output of given program.

497


How many parts are there in a declaration statement using data structures?

488


“int a[] = new int[3]{1, 2, 3}” – This a legal way of defining the arrays?

717


Which interfaces are implemented by printerstatereasons?

526


What are the two types of data?

478






What is the meaning of anonymous array? Explain with an example?

757


When new data are to be inserted into a data structure?

489


Is hashmap a collection?

524


Name some applications which use linked lists.

553


What are priority queues?

519


What is the difference between null and void?

539


What is difference between hashset and treeset?

462


Differentiate between push and pop?

681


What are the types of linked list?

515


Discuss the difference between a stack and an Array?

537