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
Difference between macros and inline functions? Can a function be forced as inline?
How can you tell whether two strings are the same?
What is string concatenation in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Explain about the functions strcat() and strcmp()?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is dangling pointer in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Are the outer parentheses in return statements really optional?
Are the variables argc and argv are always local to main?
What are the back slash character constants or escape sequence charactersavailable in c?
What is use of pointer?
What are qualifiers in c?
Tell me with an example the self-referential structure?
What is define c?