---
title: "What is a heap in MVC?"  
description: "What is a heap in MVC?"  
author: "mickey Davis"  
published: 2017-11-14  
canonical: https://answers.mindstick.com/qa/30527/what-is-a-heap-in-mvc  
category: "programming"  
tags: ["asp.net", "asp.net mvc", ".net programming"]  
reading_time: 1 minute  

---

# What is a heap in MVC?

What is a [heap](https://www.mindstick.com/interview/2675/what-is-heap) in [MVC](https://www.mindstick.com/articles/1655/implementing-undo-in-asp-dot-net-webworm-s-and-mvc)?

## Answers

### Answer by Arti Mishra

**“Heap in MVC”** Heap is used for **dynamic memory allocation** and it **allocates the memory at runtime**. In a heap, **memory is allocated randomly** and there is **no limitation of size**. In heap, **you can allocate or de-allocate the** **block many times as per user requirement.** And **accessing of the object is so difficult** in comparison of the stack. It also takes much more time for memory allocation. \
**For Example** ![What is a heap in MVC?](https://answers.mindstick.com/questionanswer/562adf2a-eb85-4315-9c34-f26a0f6c8afb/images/318f0ff5-abde-4577-84f2-1ac9e5d43c01.png)


---

Original Source: https://answers.mindstick.com/qa/30527/what-is-a-heap-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
