Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to implement stack operation using singly linked list

Answers were Sorted based on User's Feedback



how to implement stack operation using singly linked list..

Answer / vignesh1988i

we know that stack is a data structure where the
highest priority will be given to the last element that is
pushed inside and the priority will decrease respectively to
the next consecutive elements........ so we are going to
implement in singly list .... so we are going to insert the
node to the left side of a reference node....... operations
performed in stack are : PUSH & POP..... PUSH here means we
are going to insert a element only at last ..... and POP
means displaying the node from first........


thank u

Is This Answer Correct ?    9 Yes 1 No

how to implement stack operation using singly linked list..

Answer / spandana

it is a datastructure which follows the principal of Last
in First order(LIFO) ie last inserted element will be
deleted first.hence both insertions and deletions takes
place at the same end.it can perform 2
operations "PUSH","POP". the special variable used in
stacks is "top"
stacks can be implemented using arrays,linked lists

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


print ur name without using any semicolon in c/c++....

21 Answers   Bosch, TCS, Wipro,


why do we use # in c-language?

1 Answers  


Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.

6 Answers   Wipro,


how to write a data 10 in address location 0x2000

3 Answers  


What is difference between scanf and gets?

0 Answers  


what does exit() do?

3 Answers   Cadence,


What is the purpose of ftell?

0 Answers  


Explain how can you check to see whether a symbol is defined?

0 Answers  


Tell me what is null pointer in c?

0 Answers  


What is the use of a static variable in c?

0 Answers  


YBJBU6

1 Answers  


Categories