title: Determining the location of Top Of Stack
body: <p>I am trying to create an array based implementation of Stacks. I am a bit confused with where should the <code>Top Of Stack</code> (a variable in my implementation) be when,</p>
  
  <ul>
  <li>The list is empty</li>
  <li>The list is full</li>
  <li>The list is neither empty and not full
  Please help me out.</li>
  </ul>
  
  <p>Thanks. </p>