Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Dynamic Memory | Dynamic Memory
C++ Intermediate | Mobile-Friendly
course content

Kursinnhold

C++ Intermediate | Mobile-Friendly

C++ Intermediate | Mobile-Friendly

1. Data Types and Arrays
2. References & Pointers
3. Dynamic Memory
4. Functions

book
Dynamic Memory

Our program is in RAM and takes some space there. Nevertheless, we still have a bunch of RAM. Imagine that it is all free, so if we need some place in the RAM, we can say to the operating system, for example, Windows: give us a little more space!

The operating system will give or not give additional memory if there is no free place, then you will have a problem :(

Well, now we are only considering the situation when everything is fine with the RAM, there is still a lot of free space, and you can safely beg for some memory.

In such situations, you will use dynamic memory: We do not know how much memory we need.

question mark

Choose correct statements:

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 2

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

course content

Kursinnhold

C++ Intermediate | Mobile-Friendly

C++ Intermediate | Mobile-Friendly

1. Data Types and Arrays
2. References & Pointers
3. Dynamic Memory
4. Functions

book
Dynamic Memory

Our program is in RAM and takes some space there. Nevertheless, we still have a bunch of RAM. Imagine that it is all free, so if we need some place in the RAM, we can say to the operating system, for example, Windows: give us a little more space!

The operating system will give or not give additional memory if there is no free place, then you will have a problem :(

Well, now we are only considering the situation when everything is fine with the RAM, there is still a lot of free space, and you can safely beg for some memory.

In such situations, you will use dynamic memory: We do not know how much memory we need.

question mark

Choose correct statements:

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 2
Vi beklager at noe gikk galt. Hva skjedde?
some-alt