A stack can be implemented only using array?if not what is used?

Answer Posted / vignesh1988i

stack is not always implemented using array's , it can also
be implemented through linked lists in DATA STRUCTURES,,,

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the equivalent code of the following statement in WHILE LOOP format?

895


What are the different types of pointers used in c language?

681


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1720


What does sizeof int return?

695


What is the role of this pointer?

640






Why do we use c for the speed of light?

702


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

745


How can I prevent another program from modifying part of a file that I am modifying?

703


When can you use a pointer with a function?

645


What is optimization in c?

652


Can a pointer be volatile in c?

630


What do mean by network ?

777


How can you increase the size of a statically allocated array?

719


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1741


Find MAXIMUM of three distinct integers using a single C statement

716