[C++ Quick Start Part 4/4] References, Pointers, and Dynamic Memory Allocation in 30 minutes

preview_player
Показать описание

►Lesson Description: This is a quick introduction to understanding how references, pointers, and dynamic memory allocation work in C++. I will first show you what a 'reference type' is, which allows you to access another location in memory by an alias. References are convenient and the preferred way to work in C++. Then I will show you a more generic structure known as a pointer, which allows us to 'store memory locations' in a variable. We can dereference pointers to retrieve a pointer to retrieve the value that is pointed to. Finally, the new and delete (delete[]) operators allow us to request memory at run-time. We use a pointer to point to the start of the allocated memory.

►Please like and subscribe to help the channel!
Рекомендации по теме
Комментарии
Автор

Easy to understand...remember me programming mid 90s with Turbo C/ Borland C...

alexandrohdez
Автор

love the way how you explain at 16:00. Thanks professor

SHSelect
Автор

That’s the best lecture on pointers and references in c++ I found. Excellent job!

ambrosemorgan
Автор

One of the most underrated channel I have seen. Good job Mike, hope you go high...

TheHasanJr
Автор

Where are you from ? I hope you have plan for create discord channel or join yo some existing one!

binhnguyenthanh