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 adt in c programming?
What is anagram in c?
What does emoji p mean?
What is variable declaration and definition in c?
Where local variables are stored in c?
What are the types of unary operators?
Explain the priority queues?
I need testPalindrome and removeSpace
#include
What header files do I need in order to define the standard library functions I use?
4. main() { int c=- -2; printf("c=%d",c); }
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
which is an algorithm for sorting in a growing Lexicographic order
How do you determine the length of a string value that was stored in a variable?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.