title: C/C++ maximum stack size of program on mainstream OSes
body: <p>I want to do DFS on a 100 X 100 array. (Say elements of array represents graph nodes) So assuming worst case, depth of recursive function calls can go upto 10000 with each call taking upto say 20 bytes. So is it feasible means is there a possibility of stackoverflow? </p>
  
  <p>What is the maximum size of stack in C/C++?</p>
  
  <blockquote>
    <p>Please specify for gcc for both<br>
    1) cygwin on Windows<br>
    2) Unix  </p>
  </blockquote>
  
  <p>What are the general limits?</p>