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
how to execute a program using if else condition and the output should enter number and the number is odd only...
Why is %d used in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is keyword in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What are the advantages of c preprocessor?
Why can arithmetic operations not be performed on void pointers?
Why is main function so important?
Is a house a shell structure?
How can I find the modification date and time of a file?
Why dont c comments nest?
What is difference between Structure and Unions?
Subtract Two Number Without Using Subtraction Operator
Why c is procedure oriented?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above