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 difference between strcpy() and memcpy() function?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Explain 'bit masking'?
what is difference between overriding and overloading?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
can we have joblib in a proc ?
Are bit fields portable?
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
16 Answers Accenture, Infosys, TCS, Wipro,
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
what is difference between #include<stdio.h> and #include"stdio.h"
Why calloc is better than malloc?
what does exit() do?