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
When is a null pointer used?
Why do we need functions in c?
Where static variables are stored in memory in c?
What are the different properties of variable number of arguments?
How can I implement a delay, or time a users response, with sub-second resolution?
Differentiate abs() function from fabs() function.
How can you increase the size of a statically allocated array?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Explain what are the different file extensions involved when programming in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Under what circumstances does a name clash occur?
What is memory leak in c?
why programs in c are running with out #include
What is enumerated data type in c?
Differentiate between Macro and ordinary definition.