how to impliment 2 or more stacks in a single dimensional
array ?
Answer Posted / sakthigurunathan
to implement two stacks in a single array consider two
stacks growing towards each other and take tos1=-1
andtos2=max as empty condition and for full condition take
tos1=tos2-1 and to insert take push1 tos1++
and for push2 tos--
| Is This Answer Correct ? | 36 Yes | 9 No |
Post New Answer View All Answers
What is a method in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is the best way of making my program efficient?
Why c is called a middle level language?
How many levels of pointers have?
Describe static function with its usage?
What does printf does?
Is there a way to jump out of a function or functions?
Suggesting that there can be 62 seconds in a minute?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Can one function call another?
Write a code on reverse string and its complexity.
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What are linked lists in c?