Тёмный

C++ Pointers - Finally Understand Pointers 

Caleb Curry
Подписаться 624 тыс.
Просмотров 208 тыс.
50% 1

Start your software dev career - calcur.tech/dev-fundamentals Get notified of my upcoming C/C++ Courses - www.codebreakthrough.com/upco...
💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
🐍 Python Course - calcur.tech/python-courses
✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/newsletter
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/subscribe
👨🏻‍🎓 Courses - www.codebreakthrough.com
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com/shop/calebcurry
🅿 Patreon - calcur.tech/patreon-calebcurry
🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/crypto
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto

Наука

Опубликовано:

 

6 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 216   
@codebreakthrough
@codebreakthrough Год назад
Check out the hands on guide - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u5AH2Wn6h1o.html Get notified of my upcoming C/C++ Courses - www.codebreakthrough.com/upcoming-c-cpp-courses
@slavsquatsuperstar
@slavsquatsuperstar 3 года назад
I love how casually this guy speaks. Almost like a friend sharing notes :)
@bluerie._.3021
@bluerie._.3021 3 года назад
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?
@MrBloodman123
@MrBloodman123 2 года назад
Nice analogy,well explained.
@Dazza_Doo
@Dazza_Doo Год назад
so... DropBox ?
@Mr.Legend_9
@Mr.Legend_9 Месяц назад
That's the confusing part with reference
@CodeSadhu
@CodeSadhu 3 года назад
Goddamn you explained this so wonderfully in 15 mins that my professors couldn't in an entire semester lol
@AdamMohamed-cq9fv
@AdamMohamed-cq9fv 3 года назад
literally very fucking true
@shivangm24
@shivangm24 3 года назад
Yes
@humann5682
@humann5682 2 года назад
Almost as though a lot of CS professors aren't always sure of what they are teaching....almost lol!
@cheesypizzajokes
@cheesypizzajokes 2 года назад
@@humann5682 or just dont care
@asmallguy6124
@asmallguy6124 2 года назад
@@humann5682 wow didn't know this was common until now lmao.
@kevinsuckiel4885
@kevinsuckiel4885 3 года назад
Finally! Big help for me right now during my class. Thanks dude.
@Danieldxc666
@Danieldxc666 3 года назад
Holy... My professor could never explain this so smoothly in half a semester. Thank you!
@bradizawsome
@bradizawsome 3 года назад
You should seriously be a professor or something. You literally made this so much easier for me to understand and you're the only RU-vidr I can find that teaches before coding which is why I only watch your videos lol
@spacemangalaxy7932
@spacemangalaxy7932 3 года назад
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!
@Squash101
@Squash101 10 месяцев назад
Certainly the best video on pointers, I wish more people taught concepts like this, rather than just showing a bit of code and syntax
@ciaspo
@ciaspo 3 года назад
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 :)
@ByteTom01
@ByteTom01 9 месяцев назад
Agreed!
@Eddy-ly2ml
@Eddy-ly2ml Год назад
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!
@Theanine3D
@Theanine3D Год назад
I've been struggling with understanding pointers in my C++ course, but your explanation made so much more sense! Thank you!
@AleCat97
@AleCat97 2 года назад
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!
@mrboyban
@mrboyban 3 года назад
Hey Caleb, thanks for make this content available,I'm feeling less dumb now.
@larrym1983
@larrym1983 2 года назад
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!
@nickdgreat6741
@nickdgreat6741 3 года назад
Great video, really helped me get a handle on the concept while keeping it interesting. Thanks for the help and keep doing you bro!
@ericvt
@ericvt Год назад
been trying to understand this since i was in university. you explained it more clear than my profs lol
@liminal6823
@liminal6823 2 года назад
int* x seems more readable to me than int *x - it makes it more clear that it's an "int-pointer" ie. its own type, distinct from int. I know there all kinds of arguments about this but I don't care because I'm always right.
@n00blamer
@n00blamer Год назад
I'm with you on this one, all the arguments are blah blah blah multiple variables blah blah.. we're just right it's that simple. :)
@oisinfeeney3471
@oisinfeeney3471 3 года назад
Cheers lad, these videos are a great help for uni
@zinnkazama5022
@zinnkazama5022 2 года назад
highly recommended video if anyone didn't get the pointer concept or don't know the use of a pointer, watch this video. Really helpful for me and thank you for the excellent explanation.
@anastasiak8589
@anastasiak8589 3 года назад
Great help in understanding pointers! Thanks Caleb.
@kylethelincey
@kylethelincey 2 года назад
I'm so glad you make videos. You explained this in a way that was very easy to understand. Thanks!
@ParkerHix
@ParkerHix Год назад
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.
@ryancarney7616
@ryancarney7616 11 месяцев назад
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!
@lemmiix
@lemmiix Месяц назад
watched like 10 videos about pointers. That's the one that made me understand how and why use pointers
@BlackMantisRed
@BlackMantisRed 2 года назад
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
@greywolf271
@greywolf271 2 года назад
I learnt more about pointers after learning C from the K&R textbook and Michael Daconta's C++ Pointers and Dynamic Memory Managements. Kernighan and Ritchie explain pointers very well and Daconta's book is highly recommended for furthering your knowledge.
@impooser
@impooser 2 года назад
Very clear and articulated. Keep it up!
@wilbertraymundrayos4175
@wilbertraymundrayos4175 3 года назад
Finally, the video/topic I've been waiting for
@mellow_frequencies
@mellow_frequencies 2 года назад
Very well explained, thanks Caleb!
@krup9898
@krup9898 4 месяца назад
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😊
@PhallicDivinity
@PhallicDivinity 3 года назад
The pointer pun 👌 LOL
@Ketsu112
@Ketsu112 Год назад
i had to learn this in the lecture hall equivalent of a hot-locked car, and picked up nothing. I was really scared, but this saved me. And I love CS, so learning this and thinking of how this can improve my code gives me tingles :D
@elliotdowney9915
@elliotdowney9915 3 года назад
Bless you Caleb!
@a_boy_can_dream
@a_boy_can_dream Год назад
You explain things really well. Subbed!
@DarkReaperK97
@DarkReaperK97 11 месяцев назад
Thanks for uploading. Pointers are terrifying for(almost) every student learning C++.
@juniornyembe4841
@juniornyembe4841 3 года назад
i'm 22 seconds into the video and ive already clicked the like button and subscribed, only from that Pointer joke. amazing
@cloudytrichomes
@cloudytrichomes 2 года назад
That pointer pun. *chef kiss*
@slayingdemon8059
@slayingdemon8059 Год назад
So nicely explained man . Really like your casual speaking explanation.
@beckypaterson3929
@beckypaterson3929 3 года назад
super helpful! Thank You!
@apollosun2913
@apollosun2913 2 года назад
Good, good, good. The book I was learning from told about assigning and dereferencing with * but never said anything about using *x , for example, by just referring to x. Now I know. Also, this video made me feel mad clever, like one of those beautiful mind guys writing nifty equations on a chalk-board that nobody else can understand.
@maxim25o2
@maxim25o2 3 года назад
You are great teacher!
@shehab976
@shehab976 2 года назад
Wow!...so much informative...everybody explains shit in my life about that pointer thing....now i know why c,c++ is that faster❤️
@user-ep5vb2rq4f
@user-ep5vb2rq4f 8 месяцев назад
Good job on explaining it. Thank you very much. Rock on!
@YouBuyWeRush
@YouBuyWeRush 3 года назад
I used your shit to pass my c++ class bro thanks haha
@jercodesthings
@jercodesthings 2 года назад
The pun gave you an instant like. Thank you for the laugh and the info!! :)
@paigen8842
@paigen8842 3 года назад
thanks caleb love you
@kenheisenberg5223
@kenheisenberg5223 Год назад
This guy is so funny. And very well explained a very difficult and confusing subject.
@DragonRazor9283
@DragonRazor9283 3 года назад
Thanks!
@gerardstric9246
@gerardstric9246 3 месяца назад
Thank you for this 🙌
@fenfire3824
@fenfire3824 3 года назад
Pointers are great for "hacking" other software, if it does not have an api. You can find out the memory addresses and read the data of other stuff and use it in your own software. Pretty sure it is violating some policys in a way, but sometimes it is an unfortunate necessarity. It is basicly the same as using cheat engine. Said differently, you can use a tool like cheat engine to find out memory locations and use this in your programs for whatever you need it.
@222ableVelo
@222ableVelo 3 года назад
This guy just explained pointers the best I've ever heard it explained........... and I'm still confused. lol Whoever was the architect of doing it this way in the beginning needs to be tarred and feathered.
@mordicai4296
@mordicai4296 3 года назад
I love you Caleb!
@CapitalCH
@CapitalCH 9 месяцев назад
thank you for posting. i did not understand and my professor hardly explained it.
@minh5532
@minh5532 2 года назад
:)) To me , it's the first time I see someone writing by left hand . Awesome
@cheesypizzajokes
@cheesypizzajokes 2 года назад
0:17 it was at this moment that I knew, I'm subbing
@johnnamtae9610
@johnnamtae9610 3 года назад
Caleb wazzzzup brothaaaaaaa!
@earthian2777
@earthian2777 2 года назад
Thanks for the pointers
@andrewnicastro8400
@andrewnicastro8400 Год назад
after weeks of not understanding pointers, I am finally granted some clarity.
@muhammadluqman3452
@muhammadluqman3452 Год назад
God bless you my friend your videos are the best!
@0x80O0oOverfl0w
@0x80O0oOverfl0w Год назад
Nice video man. One thing I had a question about but didn't hear you mention, is the pointer an int because it's a memory address or because it's pointing to an int? In other words, if your original variable was something other than an int would the pointer change or would it still be an int? I was a bit confused on that aspect. Cheers.
@cclemon2531
@cclemon2531 9 месяцев назад
thx for helping me learning pointer please continue create more tutorial video!!
@Silvertestrun
@Silvertestrun 8 месяцев назад
Thank you!
@davidscott7435
@davidscott7435 2 года назад
I hate visual studio. My professor also just says “here’s your assignment good luck” so I’m on my own. This helped a lot thanks!
@ioannaathineos5269
@ioannaathineos5269 5 месяцев назад
stunning!!
@radioactium
@radioactium Год назад
if you're initializing the variable *y and setting it to the address of x (&x), why does that same *y call the value at that address and not the address itself when you use it later in the code, since you set it to the address in the beginning? that seems inconsistent to me
@islemghz3780
@islemghz3780 2 года назад
great video he explain like talking to a friend
@Man-nv2rn
@Man-nv2rn Год назад
Great Video bro!!!
@diane7250
@diane7250 Год назад
Caleb you are one of those guys >>
@nicolascrespo4643
@nicolascrespo4643 2 года назад
Thanks again! I got the point
@codebreakthrough
@codebreakthrough 2 года назад
😁
@KpxRagDoll
@KpxRagDoll 2 года назад
Ahahhh that pointer pun at the start got me ngl
@raymoseley9501
@raymoseley9501 Год назад
I slapped it!
@getherdoneproduction2377
@getherdoneproduction2377 2 года назад
This is so great
@yanghunkim5942
@yanghunkim5942 3 года назад
thank you mas!
@gianniskallionis3300
@gianniskallionis3300 3 месяца назад
thank you buddy!
@skypuff
@skypuff 3 года назад
I swear I always have fun and enjoy c++ when I watch caleb curry
@alexandermilleriii499
@alexandermilleriii499 3 года назад
4:09 As if Hexadecimal "numbers" makes sense lol... hex includes letters. I would just say hexadecimal characters...
@codebreakthrough
@codebreakthrough 3 года назад
Well in hex A-F would be numbers not characters. All kinds of confusing 😉
@vlogtomejr.1919
@vlogtomejr.1919 3 года назад
I suppose the term "numerals" is likely most appropriate for this context.
@manikazemi5556
@manikazemi5556 3 года назад
also, we can call "&" (address of operator) as ampersand operator.
@lmaoforgotmaname129
@lmaoforgotmaname129 2 года назад
Thanks for your comment, you actually helped me to understand my Problem ^^. Please stay well and keep on :D. Greetings from Switzerland!
@pervbirdmusic
@pervbirdmusic 2 года назад
"Alright, let's learn how to use pointers!" "Use references instead." "Aight, cool."
@nathanmiller9218
@nathanmiller9218 3 года назад
Is it possible or allowed to define an integer pointer as int* y = &x as opposed to int *y = &x? I know c++ ignores spaces in most situations, but does asterisk placement make a difference in that statement?
@gabrielaguilar5237
@gabrielaguilar5237 3 года назад
No, it does not make a difference. Defining a pointer as: int* y = &x; int *y = &x; or int * y = &x; are basically the same thing.
@josephzamora2676
@josephzamora2676 Год назад
Int* just makes more sense
@mishetohey5322
@mishetohey5322 3 года назад
OMG! THANKSSS
@TomtheMagician21
@TomtheMagician21 2 года назад
Wow thank you
@ibgaurav7159
@ibgaurav7159 3 года назад
It was amazing 😍😍😍😍😍
@aronas1353
@aronas1353 Год назад
YOU sir are a dead set LEGEND!
@ecmrn
@ecmrn 5 месяцев назад
Finally I feel like I understand!
@fortouph
@fortouph 2 месяца назад
I like that you use a white board, I've had difficulties following other coding teachers on youtube who only use the IDE while talking about these topics. I find the whiteboard much easier to follow possibly because I'm a visual learner. You also do an amazing job dumbing down concepts that makes them easier to understand.
@Lin_The_Cat_
@Lin_The_Cat_ 2 года назад
Just *had* to subscribe after that pointers pun.
@stevenhong7099
@stevenhong7099 3 года назад
Does the location of * matter when declare the variable? For exmaple, int* y and int *y.
@gpetty599
@gpetty599 3 года назад
No it doesn’t. It’s like the & in references. It doesn’t matter where you put it. It can be int * x, int* x, or int *x.
@computerprogrammer7942
@computerprogrammer7942 3 года назад
@@gpetty599 It’s bad practice just use it normally like int* or you are gonna confuse people that come from other C like languages
@kristiantorres1080
@kristiantorres1080 2 года назад
Where's the second part? Amazing video
@isaacajiza4879
@isaacajiza4879 Год назад
Good job
@calebfurley3784
@calebfurley3784 8 месяцев назад
At the end of the video you started firing them little neurons I got, then said “but let’s not get into the weeds we’ll just stop here” 😭 good video though, I wanna move from Java to c++ and this was one of the first videos I watched, so thanks.
@lazyonigiri5665
@lazyonigiri5665 2 года назад
i love him so much
@n.lwhitaker572
@n.lwhitaker572 3 года назад
Hallelujah for this man. Fighting the good fight
@andrewthebladethrower8371
@andrewthebladethrower8371 2 года назад
thank you sir
@burburchacha
@burburchacha 2 года назад
8:28
@rhysrittgers2183
@rhysrittgers2183 2 месяца назад
I hope you are making millions off these videos because you are helping millions. If you started a goFundMe and asked all your viewers to donate a dollar we would all do it and you would be rich
@youpii6579
@youpii6579 2 года назад
great video
@bd_harold7752
@bd_harold7752 6 месяцев назад
I like this explanation
@BluetonicUK28
@BluetonicUK28 2 года назад
Superb
@imagidan
@imagidan 3 года назад
Thanks for the pointers LMAO
@Miyano_Shiho4869
@Miyano_Shiho4869 2 года назад
He _pointed_ us in the right direction
Далее
Working with C++ Pointers
9:43
Просмотров 42 тыс.
References in C++ Explained
15:03
Просмотров 97 тыс.
Gặp 2 thánh troll | CHANG DORY | ometv
00:42
Просмотров 22 млн
ПОЮ ЛЕТНИЕ ПЕСНИ🌞
3:16:55
Просмотров 1,7 млн
⚡️Uylanishim kerak, sovchilikka borasizmi?...😅
00:50
Lasagna Soup @Lionfield
00:35
Просмотров 4,6 млн
Smart Pointers in C++ (Stop Using new?)
17:18
Просмотров 10 тыс.
Pointers and dynamic memory - stack vs heap
17:26
Просмотров 1,4 млн
Comparing C to machine language
10:02
Просмотров 5 млн
What Are Pointers? (C++)
41:55
Просмотров 560 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 286 тыс.
C++ Pass by Value, Reference, Pointer Explained
10:18
POINTERS in C++
16:59
Просмотров 1 млн
Blackview N6000SE Краш Тест!
1:00
Просмотров 38 тыс.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33