Memory Management

This lesson discusses two memory management areas i.e. stack and heap.

In many programming languages, there is no need to bother where the memory is allocated. But in system programming languages like Rust, a program’s behavior depends upon the memory being used, i.e., stack or heap.

Stack

When the size of data is known at compile-time, a stack is used for storage.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy