What is the Stack?

What is the Stack?



A special region of your computer's memory that store temporary variables created by each function (including Main( ) ). It is managed and optimized by the CPU quite closely.

Everytime a function declares a new variable, it is pushed where?

Everytime that function exits, what happens to all of the variables?
Onto the Stack.

They are freed / deleted. Once a stack variable is freed, that region of memory becomes available for other stack variables.

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

What does Latency mean?