Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks.
Answer Posted / gingercpu
One to pop and the other to push. Have to maintain all the
elements. Index converted to the # of push and pop
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
explain what is a newline escape sequence?
How can I direct output to the printer?
What is a char c?
How we can insert comments in a c program?
How do you use a pointer to a function?
What is pragma in c?
explain what is fifo?
Are the variables argc and argv are always local to main?
What does stand for?
How can you find the day of the week given the date?
What is an endless loop?
What is difference between constant pointer and constant variable?
Explain what are preprocessor directives?
Differentiate call by value and call by reference?