C++ Objects: Stack vs. Heap

  Рет қаралды 8,427

pikuma

pikuma

Күн бұрын

Пікірлер: 19
@notovertaken8330
@notovertaken8330 3 жыл бұрын
Best lecturer! Very Underrated.
@d.h.y
@d.h.y Жыл бұрын
This is one of the best explanation I've ever seen on this topic.
@pollirodrigo
@pollirodrigo Жыл бұрын
This is one of the best masters of games I know. Excellent explanation full of details.
@simaobonvalot9141
@simaobonvalot9141 Жыл бұрын
Good explanation, looking forward to watch the other videos on other topics.
@Assafist
@Assafist 2 жыл бұрын
Brilliant lecturer !!
@arkemal
@arkemal Ай бұрын
thank you! Very well explained
@quentin7343
@quentin7343 2 жыл бұрын
Excellent lecturer.
@baringkiron5375
@baringkiron5375 9 ай бұрын
Thank you, you are so great at teaching!! 😄
@yoman9446
@yoman9446 3 жыл бұрын
Thank you
@sallaklamhayyen9876
@sallaklamhayyen9876 2 жыл бұрын
great explanation thank you so much
@stasbakalo6264
@stasbakalo6264 2 жыл бұрын
Good explanation! Thank you
@joscaz
@joscaz 10 ай бұрын
Thanks for the great explanation!
@andregrobler4393
@andregrobler4393 2 жыл бұрын
Very good explanation. Many thanks!!
@kera9798
@kera9798 6 ай бұрын
great stuff
@federicoriva7928
@federicoriva7928 3 жыл бұрын
Really great explanation but there's one thing that i still don't get: when you talk about Enemy* enemy = new Enemy(), you say at 8:30 that "an object is a pointer to something in memory" and immediately afterwards you "all we have is a pointer to an object". So we have an object, enemy, allocated in stack which is pointing to an object allocated in heap? Why enemy is considered also an object and not just a pointer to an object? In simple words, is a pointer to an object considered to be an object?
@kamens793
@kamens793 3 жыл бұрын
Not really, objects and pointer of a object are two different things. When you create a object with the key word new ( Enemy* enemy = new Enemy() ), your are doing two things: 1- Allocating memory on the heap for that object. 2- Asigning the address of that memory allocated to a variable called enemy. The variable enemy only contain the address, everytime you call it it will only point to the location of the object in the heap (That's why is called pointer).
@alleyesonme1432
@alleyesonme1432 Жыл бұрын
@@kamens793 So to say, pointer is a reference path?
@notovertaken8330
@notovertaken8330 3 жыл бұрын
Could you upload the 3d software renderer with C language to Udemy? I love the platform there
@pikuma
@pikuma 3 жыл бұрын
Hi there. The new courses will not be uploaded to Udemy, only at pikuma.com.
How to link SDL 2 with Visual Studio on Windows (2021)
14:58
Stack vs Heap Memory in C++
19:31
The Cherno
Рет қаралды 581 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 28 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
are "smart pointers" actually smart?
9:44
Low Level
Рет қаралды 79 М.
Understanding Static, Stack, and Heap Memory Regions (Examples in C)
33:29
Understanding C++ Vector (Dynamic Arrays)
1:14:34
pikuma
Рет қаралды 24 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 830 М.
Why do we use SDL with C & C++?
16:26
pikuma
Рет қаралды 46 М.
std::move and the Move Assignment Operator in C++
16:06
The Cherno
Рет қаралды 177 М.
Understanding .NET C# Heaps (Deep Dive)
28:23
Raw Coding
Рет қаралды 14 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 28 МЛН