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
Explain high-order and low-order bytes.
Do you know pointer in c?
Why clrscr is used after variable declaration?
What is the best organizational structure?
Explain how do you convert strings to numbers in c?
What is extern keyword in c?
Explain what is the concatenation operator?
Explain what is a 'locale'?
Is c is a procedural language?
Explain main function in c?
Is it possible to initialize a variable at the time it was declared?
can anyone please tell about the nested interrupts?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Explain the concept and use of type void.
What is s or c?