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 |
Explain the ternary tree?
c programming of binary addition of two binary numbers
9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?
Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?
prog for 1st five prime numbers in 2^x - 1
Differentiate between Macro and ordinary definition.
wat is the meaning of c?
what is an inline function?
How do you list a file’s date and time?
what is the main use of c where it can use the c
Explain how to reverse singly link list.
Which control loop is recommended if you have to execute set of statements for fixed number of times?