title: Stack implementation without using pointers
body: <p>I need to implement a very basic stack data structure for keeping integers in <code>C</code> without using pointers. Is this possible using only arrays? Simple pseudo code would be highly appreciated.</p>
  
  <p>Edit: I'm using a model checking tool called <a href="http://www.uppaal.org/" rel="nofollow">UPPAAL</a> that supports the basic functionalities of <code>C</code> and I need to use a recursive function which <code>UPPAAL</code> doesn't support. I thought about implementing the recursion using my own stack because <code>UPPAAL</code> doesn't support pointers. Any better ideas?</p>