Uploaded July 2014 | Updated September 2026, 2 weeks ago
In this unusually long video, we go over some of the pointer pitfalls like returning a pointer to a stack variable, or storing a pointer to a vector element (dont do that ;) ) We also go over coding style a bit at the end of the video!
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
In this unusually long video, we go over some of the pointer pitfalls like returning a pointer to a stack variable, or storing a pointer to a vector element (dont do that ;) ) We also go over coding style a bit at the end of the video!
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com










![C++/Game Tutorial 27: new, delete, and delete[]
In this episode we learn how to allocate variables on the heap using the new operator, and how to delete them from the heap with delete or delete[]! We also learn a little more about the difference between a by reference parameter and a pointer, and we learn that we should use nullptr instead of NULL :)
Twitter: https://twitter.com/ChillstepCoder
Seed Of Andromeda Channel: https://www.youtube.com/user/DubstepCoder
Seed Of Andromeda Website: http://www.seedofandromeda.com/ C++/Game Tutorial 27: new, delete, and delete[]](https://i.ytimg.com/vi/LMpkhZc17Z0/mqdefault.jpg)