From an SO answer1 about Heap and Stack, it raised me a question: Why it is important to know where the variables are allocated?
At another answer someone pointed that the stack is faster. Is this the only implication? Could someone give a code example where a simple allocation location change could solve a problem (eg. performance)?
Note that this question is .NET specific
1 the question is removed from SO.
See Question&Answers more detail:os