---
title: "Discussion on \"Stack v/s Heap\" | Hashnode"
description: "Discussion on \"Stack v/s Heap\". The stack and heap are both areas of memory used by programs, but they differ in how they're allocated, used, and managed. Here's a breakdown of the key differences:\nAllocation:\n\nStack: static allocation. Memory is allocated at compile time based on ..."
url: "https://hashnode.com/posts/stack-vs-heap/6682bdd2db43d8cd0ddf2cb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stack v/s Heap](https://hided.hashnode.dev/stack-vs-heap?utm_source=hashnode&utm_medium=feed)

The stack and heap are both areas of memory used by programs, but they differ in how they're allocated, used, and managed. Here's a breakdown of the key differences: Allocation: Stack: static allocation. Memory is allocated at compile time based on ...

Jul 1, 2024 · 2 min read · hided.hashnode.dev  
Read the article

-   [#stack](https://hashnode.com/tag/stack)
-   [#heap](https://hashnode.com/tag/heap)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Hitendra Kumar Dewangan](https://hashnode.com/@IAmHitenDewangan)

@IAmHitenDewangan · Bangalore, Karnataka, India

  
[View profile](https://hashnode.com/@IAmHitenDewangan)

Hello World :)

👋 Hi, I’m @HitenDewangan 👀 I enjoy coding, music, graphic designing and martial arts. 🧩 Intermediate coder in Python. 🪸 Learnt Fundamentals of C and Data Analysis with MS Excel. 🌱 I’m currently learning Web Development, and Data Science with Python(Panda). 💞️ I’m looking to collaborate on projects. 📫 How to reach me : Email: hitendewangan100j@gmail.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
