title: How to share data (array) between recursive calls?
body: <p>I know Each recursive call has its own copy of data stored in its reserved area in the stack.</p>
  
  <p>However how can a recursive call access shared public static data declared in the main for example ?</p>
  
  <p>Is this data in the stack or heap ?</p>