This lecture makes me unbelievably happy. Richard's explanation of pointers is simply brilliant. He then performs some hilarious magic tricks and even rewards his students with 256 Mars bars. This is amazing!
Wow this guy is genuinely interested in teaching, he was so good that I, who has a hard time focusing in a real class, sat in front of my laptop and watched it all in one setting with focus. Wish more professors were like him.
Oh darn, when I see proffessors like this Im sad that theres not more of them like this one, great study, fun explaining of things, and compairing things from everyday use with virtual things. That was a nice hour of great education!
WILLIAM such a good question 17:45 . I was searching for hours on internet WHY,WHY,WHY should we use pointers instead of normal variables. Mr.Richard is an amazing teacher
A simple explanation of pointers. int* creates a pointer variable which can store the address of another integer. if we say int* a, a is now ready store the address of int b. To get the address of variable b, we say &b. So now we can say a = &b; . We should also remember that a also has an address and can be referred to by saying &a. *a returns the value stored at the address stored in a. That is b. Lol!
I have not touched java in a while. a should return the address and *a should give the value stored at that address if my understanding of pointers is still intact.
For those here in 2023, hit the like button😅😅😅... I totally love this Professor's passion. He made Pointers absolutely look easy peasy. Thank you Professor Richard
ur awsome..non of my teachers are like u..they never teach us like this...they just gives me power point slides and say me to do everything...this is very helpful to me...thank u so much..
Had the pleasure of meeting and attending lectures by Richard Buckland at UNSW. He is a legend and a brilliant, well loved lecturer. An asset to the university.
Just loved it...understood every bit of pointers..undoubtedly the best professor ever. Please don't stop the good work and keep on uploading his lectures..we'd be really grateful to you!!
More teachers like this guy needed for sure. Things get complicated when ya look at stuff like int **p1 / array of pointers / pointer to an array of x / function pointers, etc... list goes on.
Incredible! I spent last few days trying to understand pointers and this video explained it so beautifully. He not only explained what pointers are but also why do we need it.
ok i'l admit i thought i was done for in coding C. discourage and unmotivated because no one could really teach me well and i tried all sorts of tricks and tips to help me learn so i wouldn't be a burden to anyone, but after seeing this vid about 1 to 2 hr later i fully understand the subject that cause me to drop my class because it was too heavy in use. now im confident that i will ace my class up coming semester thank you his teaching style make you understand it perfectly.
Wow. I've been looking everywhere for a good pointer (pun intended) to pointers, and this by far has to be the best. Cleared up everything I was unsure of. Amazing lecturer!
Watched the magic tricks at the end out of respect for quality lesson -- ended up learning another lesson. Thanks for making this -- it was really really helpful.
14:53 This example is enlightening. Thinking about it will teach you a bit about how C compilers usually work. They usually have a notion of 'lvalues' (expressions that can appear on the left hand side of the assignment operator) and 'rvalues' (expressions that can't). In his example (&&&***x), we'd have to assume that x is at least an n-fold pointer (so that we can dereference it at least three times). We can then apply the reference (&) operator once to get the address of this value, but the second use of & is where it already goes wrong. At that point, we're trying to get the address of an rvalue - something that doesn't live at a memory address, but is just an expression floating around ready to be used. If you try it in C, it won't even compile. He suggests trying the other way around (***&&&x), but this has the same problem at the second use of &. One way to do something that WILL work is to try declaring x and then successively declaring pointers to x, pointers to this pointer, and so on. If you do this, you can successfully dereference the final pointer three times to get back x. TLDR: any occurrence of '&&' is going to fail.
Wow.... That's a beautiful lecture that surely removed all my doubts about pointer... And the guy makes things quite simple and easier to understand... Great job Sir...
actually pointers is easy.. what make its hard is,ppl always wonder why we learn it thank you richard for clearing this up basically pointers are use to overcoming scoping limitation
I finally understood how can I use pointers, great lesson! (also, the teacher is so sweet c: doing magic tricks and bringing presents hahaha aww) thanks for uploading this!
I feel exactly the same way, I studied computer science @ University of Hertfordshire. Complete SHAM, no C taught what so ever. All I learned was JAVA. Working as a Telecoms Engineer in embedded development. I find my self struggling, however this video cleared pointers up for me Thanks you Sir
not if you dereference it, in fact it makes more sence to declare it int *i because you will rarely call it by i except in the beginning when you point it somewhere.
It depends on your coding style.. Ive worked with some C programmers who would instinctively only dereference stucts with (*list).push_back() to stay consistent with dereferencing more basic pointers. It all boils down to style.
@axelasdf The pointer is the first element of the array. You can fall off the end of the array (into other memory). I think stopping it falling off the end is a compile-time trick, but I am not 100% certain of that.
wow that example of the Task(); function (or method) really made a light bulb go off above my head. Those annoying getter and setter functions with classes that, previously, I had to make a new copy of the variables I wanted to manipulate (if they were public) can be avoided if I use pointers. Well one important concept understood, a thousand more to go
I wish more programming teachers were interactive like this. Maybe not talking with the students a lot, but most of my programming instructors just bring their pre-written code and scroll through it while talking. I can learn that way, but it's just missing something
i like this teacher's passion. helps learning.
i finally get pointers
This last hour watching this video was the best hour of education I had in years ! Although I previously knew about pointers, I didn't miss a second.
You are the best professor in the WORLD. Thank you for sharing video on youtube.
I wish my professor was this enthusiastic!
This guy really knows how to teach. Out of all the videos I've watched about pointers, this one clarified the concept at a fundamental level.
This lecture makes me unbelievably happy. Richard's explanation of pointers is simply brilliant. He then performs some hilarious magic tricks and even rewards his students with 256 Mars bars. This is amazing!
Totally gonna watch his lectures instead of ones that I can listen on my university, cause this guy's explaination skill rocks!
Hope he hasn’t started another sars equivalent
Hunh, how uh, serendipitous
Watching this video in quarantine
Joke didn’t age well
Nothing between these walls ever leaves this walls, loved your confidence sir.
note to self: x is actually )( and & is actually 8
or gamma
Jump to 4:18 to go right to the pointer discussion.
But you'll miss out on the best part
thank u
Fortunately I've started to read the comments while watching the video. Thx man
Finally understood pointers !! Best lecture ever. Truly educational.
didn't know John Green knew so much about programming. Cool guy!
The same comparison crossed my mind! Hahaha
Wow this guy is genuinely interested in teaching, he was so good that I, who has a hard time focusing in a real class, sat in front of my laptop and watched it all in one setting with focus. Wish more professors were like him.
Oh darn, when I see proffessors like this Im sad that theres not more of them like this one, great study, fun explaining of things, and compairing things from everyday use with virtual things. That was a nice hour of great education!
WILLIAM such a good question 17:45 . I was searching for hours on internet WHY,WHY,WHY should we use pointers instead of normal variables. Mr.Richard is an amazing teacher
A simple explanation of pointers. int* creates a pointer variable which can store the address of another integer. if we say int* a, a is now ready store the address of int b. To get the address of variable b, we say &b. So now we can say a = &b; . We should also remember that a also has an address and can be referred to by saying &a. *a returns the value stored at the address stored in a. That is b. Lol!
I have not touched java in a while. a should return the address and *a should give the value stored at that address if my understanding of pointers is still intact.
thanks for the explaination.. this was the only thing missing in the lecture
That is &b *
For those here in 2023, hit the like button😅😅😅... I totally love this Professor's passion. He made Pointers absolutely look easy peasy. Thank you Professor Richard
why lawyers learn C🙃
@@justcurious1940 because lawyers have to know a bit of everything 😂😂😂
@@big_lawyer make sense
The quality of teaching is just insane, everything is so clear, i wish all of the colleges in India would teach this way :/
ur awsome..non of my teachers are like u..they never teach us like this...they just gives me power point slides and say me to do everything...this is very helpful to me...thank u so much..
Had the pleasure of meeting and attending lectures by Richard Buckland at UNSW. He is a legend and a brilliant, well loved lecturer. An asset to the university.
Just loved it...understood every bit of pointers..undoubtedly the best professor ever. Please don't stop the good work and keep on uploading his lectures..we'd be really grateful to you!!
More teachers like this guy needed for sure. Things get complicated when ya look at stuff like int **p1 / array of pointers / pointer to an array of x / function pointers, etc... list goes on.
Wow, months of studying c and c++ = 0 understanding of pointers.
48 minutes of this guys lecture and I can use them with ease.
Incredible! I spent last few days trying to understand pointers and this video explained it so beautifully. He not only explained what pointers are but also why do we need it.
one of the best explanations I have seen about pointers to pointers (the crazy exam question example).
I love this guy's passion and energy. I have been trying to get my head around pointers for ages and just avoided them. Now I understand!
this guy is a top class lecturer!
Like the fifth video I've looked up, this one has taught me everything i could want to know at this stage and more. This guy 's a great teacher!
ok i'l admit i thought i was done for in coding C. discourage and unmotivated because no one could really teach me well and i tried all sorts of tricks and tips to help me learn so i wouldn't be a burden to anyone, but after seeing this vid about 1 to 2 hr later i fully understand the subject that cause me to drop my class because it was too heavy in use. now im confident that i will ace my class up coming semester thank you his teaching style make you understand it perfectly.
Excellent way of teaching... Not just pointers.. but infact anything for that matter!
Wow. I've been looking everywhere for a good pointer (pun intended) to pointers, and this by far has to be the best. Cleared up everything I was unsure of. Amazing lecturer!
can't unsee the John Green in you :D Thank you so much for your clear expression of the pointers and thank you for your great passion!
what a lecture!!!!!!!! SO MUCH DEDICATED IN THEIR WORK HOPE U KEEP UP THE GOOD JOB:)
Amazing lecturer, some people are born to be teachers
I wish I had him as a professor. This one video has helped me understand pointers than prior professors or textbooks.
this teacher is a gifted one.
"In other languages, [scoffs] you write like this: p1 is a pointer to int, but in C we write it like this: star-p is an int." Brilliant!
LMAO at that joke @0:58....watching this in mid-March of 2020 XD
Cables ?
Watched the magic tricks at the end out of respect for quality lesson -- ended up learning another lesson. Thanks for making this -- it was really really helpful.
14:53 This example is enlightening. Thinking about it will teach you a bit about how C compilers usually work. They usually have a notion of 'lvalues' (expressions that can appear on the left hand side of the assignment operator) and 'rvalues' (expressions that can't). In his example (&&&***x), we'd have to assume that x is at least an n-fold pointer (so that we can dereference it at least three times). We can then apply the reference (&) operator once to get the address of this value, but the second use of & is where it already goes wrong. At that point, we're trying to get the address of an rvalue - something that doesn't live at a memory address, but is just an expression floating around ready to be used. If you try it in C, it won't even compile. He suggests trying the other way around (***&&&x), but this has the same problem at the second use of &. One way to do something that WILL work is to try declaring x and then successively declaring pointers to x, pointers to this pointer, and so on. If you do this, you can successfully dereference the final pointer three times to get back x. TLDR: any occurrence of '&&' is going to fail.
This is way clearer than the lecture I had today about pointers.
Wow.... That's a beautiful lecture that surely removed all my doubts about pointer... And the guy makes things quite simple and easier to understand... Great job Sir...
Finally understand pointers now thankyou!!! Only lecture able to explain the purpose of pointers.
"Hopefully I didn't start a SARS equivalent " lol
actually pointers is easy..
what make its hard is,ppl always wonder why we learn it
thank you richard for clearing this up
basically pointers are use to overcoming scoping limitation
This was extremely helpful. Always nice to have that crazy teacher liven things up.
I finally understood how can I use pointers, great lesson!
(also, the teacher is so sweet c: doing magic tricks and bringing presents hahaha aww)
thanks for uploading this!
Just great, it's a pity that my teacher wasn't anything close to this.
i love professor voice and his teaching style.
Holy shit this is useful. I wish my teachers were as engaged in the subject as this guy is.
Brilliant. Thank you so much. I've gone over the lecture material for my own uni so many times trying to grasp this. That was so clear.
I really really really enjoyed this class, He's like the liveliest teacher I've ever known!!!!
Finally I understand pointers! This is a very good teacher.
I thought this would be difficult to understand, but you explain very well. thanks!
This guy is amazing! He makes things so easy to understand. Good refresher.
Great stuff! Our class didn't go into the usefulness of it and now it makes SOO much more sense. Thanks!
BEST EDUCATIONAL VIDEO I HAVE SEEN
BEST LECTURER I HAVE SEEN
AMAZING VIDEO
AMAZING MAN
10/10
THANK YOU SO MUCH
hands down the best video on pointers. amazing lecture
This guy reminds me of Walter White
lol. thats true.
yes. me too :D
wish i had a teacher like him
This really helped me understanding pointers , I wish I had teachers like this guy.
Wow, this guy propably made me find what im going to do after high school! Programming is so interesting!
this guy is so talented in teaching!
Now those are the kind of teachers we need!
Awesome.. The best teacher in world
This is the best professor I've seen so far! And I've seen a lot. I'm 35 and still studying, so go figure it :)))
i've watched a lot tutorials about pointers and i haven't understood them till now, THANKS !
One of the best guides, subscribed to this channel!
Richard is the BEST TEACHER EVAR!
Amazing professor, crystal clear explanation! Kinda looks like wilson from house
I feel exactly the same way, I studied computer science @ University of Hertfordshire. Complete SHAM, no C taught what so ever. All I learned was JAVA. Working as a Telecoms Engineer in embedded development. I find my self struggling, however this video cleared pointers up for me
Thanks you Sir
If only we had teachers like you! Thanks a ton for this!!!
I ACTUALLY LOVE THIS MAN.
Wow, come now, this guy is fantastic! I wish I could have a king of education like they have!
this is the best tutorial ever i know how pointers works now thanks Richard
my prof just read his code out loud for 60 mins without explaining it... thank you for uploading this.
Oh my God,,amazing;thanks is a very little word ;thank you very very very very much;
God bless and guide you
Rana from Egypt
good lecture!! like the magic :) His passion is just awesome
not if you dereference it, in fact it makes more sence to declare it int *i because you will rarely call it by i except in the beginning when you point it somewhere.
cant be better explained as this, thank you so much.
Not the professor talking about a SARS outbreak from Hong Kong 12 years before COVID. really tripped me out to hear lol
really liked his way of teaching ...quite dedicated
It depends on your coding style.. Ive worked with some C programmers who would instinctively only dereference stucts with (*list).push_back() to stay consistent with dereferencing more basic pointers. It all boils down to style.
introduction to the concept of pointers. Cool video.
Awesome style of teaching,
learning made fun....
Thank you Mr.Richard :)
This dude is absolutely brilliant!!! Wonderful explanation!
@axelasdf The pointer is the first element of the array. You can fall off the end of the array (into other memory). I think stopping it falling off the end is a compile-time trick, but I am not 100% certain of that.
I love this lecture........so much!!!!!
Now I don't have to read my boring pdf on pointers
wow that example of the Task(); function (or method) really made a light bulb go off above my head. Those annoying getter and setter functions with classes that, previously, I had to make a new copy of the variables I wanted to manipulate (if they were public) can be avoided if I use pointers.
Well one important concept understood, a thousand more to go
Thank you very much Richard! You really know the good way of teaching!
i wish i was taking c instead of c++ so that i could follow up with the syntax
Amazing professor !
Exactly so int *i; makes more sense than int* i; the asterisk just before the variable clarifies that it is a pointer and not just another int.
the best thing i got from this video is "there is no such thing like pass by reference in c"
This feel inside me, you're good for me
Very comprehensive course, thanks for that
Lol, this man can teach!
Thanks
onlylikenerd it's you???
EXCELLENT lecture!!!
Hell, what a great teacher. So passionate :)
This is so good! I finally understood the basics of pointers!
I wish more programming teachers were interactive like this. Maybe not talking with the students a lot, but most of my programming instructors just bring their pre-written code and scroll through it while talking. I can learn that way, but it's just missing something