POINTERS in C++

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


----------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

this man is teaching c++ in the kitchen WHAT A LEGEND

jaber
Автор

Couple of years ago, when I tried to understand this, I told my teacher at school: "So pointer is like a shortcut on a desktop". And he started to yell with excitement: "Thats the best analogy I have heard"

Автор

POINTERS in C++ but every time he says "a pointer is just an integer" it gets faster

kemptcode
Автор

Thanks for pointing me in the right direction.

jdevcast
Автор

I would like to mention an interesting behavior of pointers. If a pointer is incremented, e.g. ptr++;, then the address it holds is not always incremented by one byte. Instead it is incremented by the size of its type. Thus, a 4 byte integer pointer would become if you type ptr++;

StickSeba
Автор

I'm crying in relief, I've been struggling to understand what are pointers and how they work for MONTHS because my C++ class is not the best for newbs like me, and you just clarified everything in less than 20 minutes!!! THANK YOU!!

lokinasthenerd
Автор

I already took 2 semesters of c++ focused computer science classes at univ but I love the way you explain things it’s both entertaining and makes you think a bit different

TonyDaExpert
Автор

14:32 ... it's kind of reminds me of "I know a guy who knows a guy"

nobir
Автор

One of my professors gave me your channel and said it was a huge help to him when he was first learning C++. This is the first video of yours I've watched (he told me to study up on pointers) and you explain things very well and thoroughly... I'll definitely watch more of your teaching videos. Thank you.

phillyphill
Автор

*My takeaways:*
1. A pointer is an integer that stores a memory address 1:10
2. Void pointer 3:55
3. Dereferencing a pointer 9:25
4. A pointer to another pointer 14:15

leixun
Автор

I can see cherno just running into a room, slamming his hand on a table, and just yelling *”POINTERS”*

hazerjm
Автор

Pointers did everyone's head in back in first year Uni. I looked back on it in later years realizing just how simple they are.

Plasticcaz
Автор

I recall struggling with this concept way back in the day. I can greatly appreciate the amount of simplicity you bring to it from a bottom up approach

psyclobe
Автор

For anyone struggling with pointers, I made up an analogy that helped me learn. Hopefully it helps you understand!

Let's say you have a bunch of warehouses in an industrial district, and each one of these warehouses (memory storage) has a different material stored in them (this is the variable).

To find a warehouse with say, wood (a variable), you would need to search up the address (memory address) of where the actual WAREHOUSE that stores wood is. So you could go there and pick up the wood(the variable memory), and build a house with it (memory modification, or modification of where the variable data is stored).

bobjoans
Автор

This series is the best I've seen on the internet. I'm learning/understanding more than I learnt in school... Thank you!

puzle
Автор

Quality is really improving every video, keep up the good work

resantic
Автор

You have a great pronunciation. Every word is clear! Thnx!!

sakensatenov
Автор

I'm watching this again 4 years later... still the best video on pointers, everything becomes clear and understandable. I was trying to learn Rust, but nobody can compare to The Cherno's teaching skills on youtube. May just end up sticking with C++ because he makes it so easy!

JohnnyThundr
Автор

Just as memory is everything for programming.
Your correct and precise pronunciation of words, as well as the proper cadence you use when speaking, is everything. Especially for those of us who are native English speakers. For which I thank you.
I have been writing code in C++ for more than 10 years and I like to review, learn and above all... absorb new resources to teach. And in you I have found a great source.
Greetings from Argentina.

Pablo

gbp
Автор

As someone that hasn't programmed in 11 years(and that was in python) trying to learn c++ you have by far made the best course I've took so far and I've took quite a few on udemy....so thanks for breaking it down super simple 😄

dustinchristian