I'm sure this is a simple question for most - but when should a programmer store information in the heap versus the stack. Am I right to assume that normally a local variable could be stored in the stack and a global variable or maybe an array would be better in the heap? Also I'm reading that the stack has a smaller, limited capacity. How large is the stack normally, does it vary by OS or environment? Can I check for free heap and stack memory? Thanks, Scott