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 |
Can the sizeof operator be used to tell the size of an array passed to a function?
Differentiate between null and void pointers.
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
Write a program to compute the following 1!+2!+...n!
Explain Linker and Loader
c program to compute Income tax and Net Salary for its employees. The company offers tax relief of Kshs. 650 for single employees and Kshs. 1,100 for married employees. The relief will be deducted from the Gross salary, to give the taxable income. This will be computed at the following rates: [10mks] Taxable Income Rate (%) <5000 0 5000-19999 6 20000-36999 9 37000 and above 16
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Write a program to print “hello world” without using semicolon?
What does 3 periods mean in texting?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
declare afunction pointer to int printf(char *)?
What is the difference between typeof(foo) and myFoo.GetType()?