C++ Pointers - Finally Understand Pointers

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


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

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

I love how casually this guy speaks. Almost like a friend sharing notes :)

slavsquatsuperstar
Автор

I thought of an analogy for when you would use pointers:
Say you ask a friend to do something regarding an essay you have on an online cloud (calling a function), but to do so, you would need to send them the essay (the arguments). You can either:
1. Send them a copy of the essay via email/message. This would give them the essay as it was when you sent it, and any changes will not transfer between versions. This means that you and your friend would only be able to see each other's essays if you were to directly communicate with each other.
2. Send them a link to the spot in the cloud where the essay is in the cloud. The link itself wouldn't be the essay, but they would be able to find the essay by following the link and any changes made by either you or your friend will be visible to anyone that looks at the essay.
Option 1 would be like directly inputting the variable, while option 2 would be like using a pointer.
Is this right?

bluerie._.
Автор

Goddamn you explained this so wonderfully in 15 mins that my professors couldn't in an entire semester lol

CodeSadhu
Автор

Finally! Big help for me right now during my class. Thanks dude.

kevinsuckiel
Автор

Holy... My professor could never explain this so smoothly in half a semester. Thank you!

Danieldxc
Автор

Certainly the best video on pointers, I wish more people taught concepts like this, rather than just showing a bit of code and syntax

Squash
Автор

You should seriously be a professor or something. You literally made this so much easier for me to understand and you're the only YouTuber I can find that teaches before coding which is why I only watch your videos lol

bradizawsome
Автор

I don't want to say other lessons bad, it's the best of 5 which I saw about pointers in recommends, and... really understand what it is and how to use it after watching. But, why is here low number of likes, not even 500. Everyone, put likes, this lesson deserves it!

spacemangalaxy
Автор

Caleb, you figure out what might be difficult to understand and you explain it very clearly. You are a great teacher, keep up the good work! Thank you very much :)

ciaspo
Автор

Pointer in C: int *p
Pointer in C++: std::unique_ptr<int> p

NoSpeechForTheDumb
Автор

I've been struggling with understanding pointers in my C++ course, but your explanation made so much more sense! Thank you!

TheanineD
Автор

8:27 was the point of no return where i crossed into learning about pointers all thanks to you Caleb! I love your explanation videos! Thank you for making teaching and explaining these concepts!

Eddy-lyml
Автор

This helps a lot. I am taking a college coding class and when we just started talking about references and pointers it was confusing. This teaching series is helping a lot though, thank you! Very fun to watch😊

krup
Автор

awesome! in my class they are teaching us about pointers and new, delete, null, which seems like the old and harder way of doing things, but thanks for mentioning it in your video! most ppl skip it because its not used frequently but when we have to follow a curriculum from univ is hard to avoid and find info about those. thank u!

AleCat
Автор

watched like 10 videos about pointers. That's the one that made me understand how and why use pointers

lemmiix
Автор

Hey Caleb, thanks for make this content available, I'm feeling less dumb now.

mrboyban
Автор

I heard someone say you needed points to program a game, I had him explain to me what pointers are but I didn’t understand it or why I would need it, thanks for the great video

BlackMantisRed
Автор

I was really confused about the meaning of the asterik when using pointers, and how it can be used in a couple different ways. This video really helped clear that up. Thanks!

ryancarney
Автор

I rarely comment on videos but just wanted to say that I've watched this vid on pointers and your vid on references. You explain things very fluidly and casually, I really appreciate it.

ParkerHix
Автор

Oh my god! I luv your explanation of pointers! My professor at school is so confusing so I had to go to youtube to find a better explanation. Your video at explaining pointers is very clear!

larrym