ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
how to implement stack operation using singly linked list
 Question Submitted By :: Chandrakala
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to implement stack operation using singly linked list
Answer
# 1
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 ?    5 Yes 1 No
Vignesh1988i
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
two variables are added answer is stored on not for third variable how it is possible?  3
wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain  3
what is dangling pointer? LG-Soft1
dibakar & vekatesh..uttejana here..abt ur reply for in place reversal of linked list..wats p stands for there?  1
palindrome for strings and numbers----Can anybody do the prog? TCS6
what is the difference between #include<stdio.h> and #include"stdio.h" ? TCS5
How can I return multiple values from a function?  4
what is difference between array and structure? TCS19
how to find sum of digits in C? CTS10
disadvantages of realloc ? HCL1
wap in c to accept a number display the total count of digit  4
how to display 2-D array elements in spiral  1
What is the memory allocated by the following definition ? int (*x)(); ADITI2
program for validity of triangle from 3 side  6
find largest element in array w/o using sorting techniques. Zycus-Infotech2
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line. Subex2
Software Interview Questions CAT1
can we print any string without using terminator? Infosys2
write a program to print sum of each row of a 2D array.  2
what is difference between overriding and overloading?  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com