Description:
In
this program we have to implement the stack operation by using the pointers.
Here they stack operation are push and pop. Push operation is used to insert
the elements into a stack and pop operation is used to remove the elements in
to a stack.
VIVA QUESTIONS:
1) Define Stack ?
Ans: A stack is a linear data structure in which a data item is inserted and deleted at one end
2) Define data structure ?
Ans: A data structure is a collection of organized data that are related to each other
3) What are the various operation performed on the stack ? Ans: push(), pop()
1) Define Stack ?
Ans: A stack is a linear data structure in which a data item is inserted and deleted at one end
2) Define data structure ?
Ans: A data structure is a collection of organized data that are related to each other
3) What are the various operation performed on the stack ? Ans: push(), pop()
Program in c++
No comments:
Post a Comment