Examveda

How do you implement a stack using two stacks?

A. By using one stack for push and the other for pop operations

B. By using one stack to keep elements and the other to reverse them

C. By alternating between two stacks

D. By using two stacks for different data types

Answer: Option A


This Question Belongs to Data Structure >> Stacks In Data Structures

Join The Discussion

Related Questions on Stacks in Data Structures