C++ Tutorial - Program Memory Layout (for beginners)

preview_player
Показать описание
The memory layout of a C++ program - simple tutorial for beginners. Includes all memory zones(or memory segments) of a C++ program such as stack and heap with general explanation.

Table of contents:
0:00 Intro
0:30 General overview
00:47 Memory segments overview
01:23 Size command in linux
02:21 Text segment
03:35 BSS segment
05:02 Data segment
06:22 Stack & Heap segments
08:00 Stack & Heap examples
08:54 Memory layout image
09:16 Outro

Рекомендации по теме
Комментарии
Автор

At the "Stack & Heap examples" chapter, around 9:30 - the second line should be:
int* z = new int;
instead of
int z = new int;

Sorry for the misunderstanding there, it was a mistake on my part.

cppdev
visit shbcf.ru