how to impliment 2 or more stacks in a single dimensional
array ?
Answer / 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 |
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
Where are the auto variables stored?
write a program which will count occurance of a day between two dates.
What is sizeof int?
Explain what is the benefit of using #define to declare a constant?
the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0
develop algorithms to add polynomials (i) in one variable
"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.
11 Answers ABC Infotech, ADP, College School Exams Tests, Kovair,
What is the size of structure in c?
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
write a C code To reverse a linked list
What is meant by 'bit masking'?