@mrtom-a-hawk6732

The clarity of this video is beyond incredible. Fantastic work!

@BelegaerTheGreat

My God, if I had just watched this 15 minute video before starting my project it would eliminate like 2 hours of confusion...

@dishmaster4140

From the bottom of my heart, thank you SO MUCH for this. I have been having the hardest time understanding pointers because no resource I had found was hitting quite the right spot on why we should care about pointers, but you did it.

Thank you for taking the time to demonstrate the memory allocation and your attention to discussing that side of things. I have been pulling my hair out over this, and I cannot tell you how overjoyed I am to have found this video.

@chickenmadness1732

I love the commented diagram you made below the code. Really helped a bunch of stuff click.

@whatsupp223

your courses on C and C++ are the best on the internet. You explain everything perfectly. Thank you very much. Keep up!

@lexdose4104

Ive been learning C++ as a 1st year CS student from around 5 months now and Im currently dealing with pointers from my book resources. I was very confused about the concept of new and delete operators and was wondering why I should use them and now Im starting to understand their functions and how important they are on memory management, thank you so much!

@calengo454

are you an angel? ive been trying to understand this for days and you're the only one that made it make sense

@SAURABHJAIN1989

7:14
int *ptr_to_int = new int(5);                         // to store an integar.

double *array = new double[5];                  //to store an array.

So, round brackets ( ) to allocate single value and square brackets [ ] to allocate an array with the new operator.

So, the basic syntax for the new operator is:
datatype *var_name = new datatype();
or
datatype *var_name = new datatype(val);      //when we pass a value (might be an int or string or any other data type)

@mustofanuruzzamanniaz7856

You are an amazing teacher

@AntumDeluge

Finally! ...I almost understand dynamic memory allocation.

Can we change the names from "heap" & "stack" to something more lay friendly?

@Exoalgeria

such a great explanation

@uclocnguyenvo422

oh shit this tutorial is so good -_- u deserve millions of subscribers

@mihaibozian

best explanation about dynamic mem allocation

@muhammadluqman3452

great playlist , you are a hidden gem!

@Kakusth-rt9of

thaank you very much struggling too much on these topic

@mirellesv

great video! at 6:47, you have declared a pointer that stores the adress of the first element of an array, right?
so, when assigning the values to the array, why couldn't we say, for example, *array[0] = 5?

@mouli4867

Thank for this tutorial. But I couldn’t find out a tutorial of yours on placement new. Please can we have a tutorial on that whenever you have time. Thank you once again.

@jojo-2059

Let's say you have a 2D pointer array of objects and the pieces in the array is dynamically allocated. Why would it be a terrible idea to "delete" a specific entry, arr[i][j] and attempt to assign nullptr afterwards to that entry? I attempted that with a specific piece of code in my chess game in the one case it caused a segfault and the other case it functioned seemingly fine. I am new to C++ so this is a bit confusing.

@张武王

Just out of curiosity, what is the font used for coding in this video? It looks quite pleasant to me.

@MatovuMubrak

I appreciate the work