title: what is the basic difference between stack and queue?
body: <p>What is the basic difference between stack and queue??</p>
  
  <p>Please help me i am unable to find the difference.</p>
  
  <p><strong>How</strong> do you differentiate a stack and a queue?</p>
  
  <p>I searched for the answer in various links and found this answer..</p>
  
  <p>In high level programming,</p>
  
  <p><em>a stack is defined as a list or sequence of elements that is lengthened by placing new elements "on top" of existing elements and shortened by removing elements from the top of existing elements. It is an ADT[Abstract Data Type] with math operations of "push" and "pop".</em></p>
  
  <p><em>A queue is a sequence of elements that is added to by placing the new element at the rear of existing and shortened by removing elements in front of queue. It is an ADT[Abstract Data Type]. There is more to these terms understood in programming of Java, C++, Python and so on.</em></p>
  
  <p>Can i have an answer which is more detailed? Please help me.</p>