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

Answer Posted / devendra

union is the best option because it allocate only one at a time

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check if a stack is empty or not?

455


Mention the steps to insert data at the starting of a singly linked list?

581


Write a program for Sorting an Array. Which sorting will you prefer?

594


What does list clear do?

482


What is a postfix expression?

571






Where the data structures are used?

563


What's difference between stack and queue?

545


Why is sorting and classifying important?

468


Write the stack overflow condition.

592


What is raid (redundant array of inexpensive disks)? Explain its level?

478


What is definition list?

522


What are the average and worst time complexity in a sorted binary tree is

535


What is lifo?

668


What are the types of array operations?

500


Can we extend an array after initialization?

582