mplementation of stack using any programing language
Answer Posted / aravind
1. stack as an array or linked list (two ways)
2.define array.
3.perform push operation by taking one more array.
4.perform pop and store the popped items
5.display function to print the popped values
6.make sure you reach LIFO
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Are the expressions * ptr ++ and ++ * ptr same?
Compare and contrast compilers from interpreters.
What are the basic data types associated with c?
What is fflush() function?
What does c mean before a date?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the process of writing the null pointer?
Explain how do you search data in a data file using random access method?
What is dangling pointer in c?
what is the different bitween abap and abap-hr?
What does a function declared as pascal do differently?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What are the different types of linkage exist in c?
What is the most efficient way to store flag values?
What are pointers in C? Give an example where to illustrate their significance.