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

Answer Posted / rabia altaf

we can make stack using class template .. now it can accept
every type of object ..

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is concurrenthashmap thread safe?

682


Define threaded binary tree.

801


What do you mean by hash function?

668


Which sorting algorithm is considered the fastest?

772


write a code for Implementation of stack and queues.

728


What are the advantages of binary search over linear search?

834


What does a bubble chart show?

634


Which data structures are used in bfs and dfs algorithm?

752


Why does hashset use hashmap?

609


Why you need a data structure?

798


What is array and string?

651


Will arraylist maintain insertion order?

692


What is concurrentlinkeddeque?

758


Is binary tree a bst?

698


What is the purpose of sorting algorithms?

673