Skip to content
0:00 / 0:00

#stack#heap#pointers

Pointers and dynamic memory - stack vs heap

mycodeschool

814K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • A classic. People kept recommending it from 2014 to 2024.

Beginner. No background in the topic needed.

1.6M views13 years ago3 recommendations

Programming languagesSystems programmingCMemory management

An explanation of dynamic memory allocation in C and C++, detailing how the stack and heap are managed.

See complete series on pointers here youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_ In this lesson, we describe the concept of dynamic memory allocation in c or c++ and explained how memory is managed for an application. We have explained the fundamental concept of stack and heap in memory also. For practice problems and more, visit: mycodeschool.com Like us on Facebook: facebook.com/MyCodeSchool Follow us on twitter: twitter.com/mycodeschool

Why it's here

3 people recommend this

What people say. Recommended as an excellent, easy-to-understand visual guide to stack and heap memory allocation in C.

u/no_couponin r/C_Programming • Recommends

On “malloc (c programming)”

This will give you a really good idea of how memory is stored and allocated when using C. In terms of the code, global, stack and heap memory. I found it very helpful.

u/Wiggledanin r/C_Programming • Recommends

On “What's malloc used for?”

link to this video Videos are by no means a replacement for school or actual studying, but this one gives a good overview on the stack and heap (including malloc and other related functions). I mean, if you have 17 minutes to spare, it really isn't as overly complicated as you might think.

u/Hot-Investment-5206in r/C_Programming • Recommends

On “Resource for C pointers ”

For better understanding u can start from memory hire some video in it 1)link to this video 2)link to this video If u see urself have no problem with memory u can watch this one for pointers link to this video