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
What are the advantages of using Unions?
What are directives in c?
Explain bit masking in c?
Why c is called top down?
When should you use a type cast?
What is modeling?
Can we access array using pointer in c language?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Give differences between - new and malloc() , delete and free() ?
Is main a keyword in c?
Why structure is used in c?
What is the use of function overloading in C?
Differentiate between declaring a variable and defining a variable?
What is ctrl c called?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;