C/C++ Memory | Handling Variables on the Stack & Heap | C/C++ Lecture Series, Episode 1 | ECG 2021 @cgtuwien
C/C++ Memory | Handling Variables on the Stack & Heap | C/C++ Lecture Series, Episode 1 | ECG 2021  @cgtuwien
Uploaded October 2021 | Updated November 2026, 1 hour ago
Learn about the different memory sections of programs, in particular about the stack, the heap, and the read-only data section. Understand when variables are put on the stack, how to put variables on the heap, and what consequences there are depending on the chosen memory.
00:00 Introduction
02:08 Stack and Heap
07:01 Example 1
08:43 Function Calls
08:52 Example 2
12:02 Destruction Time
12:22 Example 3
14:16 Example 4
17:08 Example 5
19:09 Memory Allocation Responsibility
19:28 Example 6
20:31 Example 7
23:05 Read-Only Data and C-Style Strings

This lecture has been recorded as part of the 186.832 Introduction to Computer Graphics course at TU Wien, winter term 2021.
Brought to you by Johannes Unterguggenberger, Research Unit of Computer Graphics, Rendering and Modeling Group, Institute of Visual Computing & Human-Centered Technology, TU Wien.

Slides can be downloaded here: https://www.cg.tuwien.ac.at/courses/EinfCG/slides/CCppLectureSeries/ECG2021_CCPP01_Memory.pdf
C/C++ Memory | Handling Variables on the Stack & Heap | C/C++ Lecture Series, Episode 1 | ECG 2021R.U.T.H., Real-Time Rendering Course, 2022WRendering Lecture 05 - Spatial Acceleration StructuresResources & Descriptors | Use Buffers and Images in Vulkan Shaders | Vulkan Lecture Series, Ep. 3Olga Mesa (Roger Williams University) - Choreographed MatterNew Years Eve, Real-Time Rendering Course, 2022WRendering Lecture 00 - IntroductionRayzer, Real-Time Rendering Course, 2023WVulkan Workshop Part 1 | Code available on GitHubBanger, Real-Time Rendering Course, 2021WDreizehn, Real-Time Rendering Course, 2021WBlockDisco, Real-Time Rendering Course, 2021W
Computer Graphics at TU Wien |

C/C++ Memory | "Handling Variables on the Stack & Heap" | C/C++ Lecture Series, Episode 1 | ECG 2021

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER