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
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What type is sizeof?
Why is it that not all header files are declared in every C program?
What is the difference between null pointer and wild pointer?
What is the size of empty structure in c?
write a program to copy the string using switch case?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Why pointers are used in c?
find the sum of two matrices and WAP for it.
Why use int main instead of void main?
Define C in your own Language.
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is the full form of getch?
How many levels of indirection in pointers can you have in a single declaration?