title: C program to find direction of stack growth
body: <p>How do I find in C whether a stack is progressing in forward or reverse direction ? WIll this work? </p>
  
  <pre><code>int j = 0;
  int k = 0;
  
  if (&amp;k &gt; &amp;j) 
   printf ("Stack is growing in forward direction");
  
  else if (&amp;k &lt; &amp;j) 
    printf ("Stack is growing in reverse direction");
  </code></pre>