---
title: "What is a stack in MVC?"  
description: "What is a stack in MVC?"  
author: "Paul Wilson"  
published: 2017-11-14  
canonical: https://answers.mindstick.com/qa/30526/what-is-a-stack-in-mvc  
category: "programming"  
tags: ["asp.net mvc", ".net programming", "asp.net"]  
reading_time: 1 minute  

---

# What is a stack in MVC?

What is a [stack](https://www.mindstick.com/blog/301746/why-is-stack-overflow-so-important-for-developers) in [MVC](https://www.mindstick.com/articles/1655/implementing-undo-in-asp-dot-net-webworm-s-and-mvc)?

## Answers

### Answer by Arti Mishra

## “Stack in MVC”

A stack is used for **static memory allocation** and it allocates the **memory at compile times**. It also **follows the rules of LIFO (Last in First Out).** In the stack, size limitation is varied according to the operating system. We can easily access the variables that are allocated on the stack and it **also takes less time in comparison of heap allocation.**

\

![What is a stack in MVC?](https://answers.mindstick.com/questionanswer/0e8043c2-a569-4825-964a-4d6b39adfd43/images/15e8c3f2-cba4-4928-bccc-16c49ada07e7.png) \


---

Original Source: https://answers.mindstick.com/qa/30526/what-is-a-stack-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
