[CT2] {Week 3}
Quick tea-time DIT update (good idea for a youtube channel).
So that was quick... From "these are pointers, but don't worry about it" we went straight "so these are pointers and they work like this and I know it melts your brain, but we're just warming up...".
Or something like that, can't remember exactly what Denis said, but that's the gist of it.
The truth is - it's not as hard as it seems to be. It's just abstract and some stuff about pointers needs a bit of time to sink in. But as any other new information - once you get it - you get it!
Anyways, here's what we went through last night:
- what pointers are (just another variable - containing addresses in their case),
- dereferencing pointers (and how * means two different things depends where it is),
- why we use pointers (passing by reference),
- functions in C and difference between passing by reference and by value.
We went trough some of the programs that Denis availed on Webcourses and are already in the Google Drive folder (01_Lectures > week3).
Those codes are pretty good to help you wrap your head around what those silly pointers. I recommend running them all and maybe tweak them a bit to see what happens. If time allows me, I'll try to make some videos of me playing with those codes and working on the Lab3 homework, so if you're struggling with the topic, feel free to check it!
Together we stand!
So that was quick... From "these are pointers, but don't worry about it" we went straight "so these are pointers and they work like this and I know it melts your brain, but we're just warming up...".
Or something like that, can't remember exactly what Denis said, but that's the gist of it.
The truth is - it's not as hard as it seems to be. It's just abstract and some stuff about pointers needs a bit of time to sink in. But as any other new information - once you get it - you get it!
Anyways, here's what we went through last night:
- what pointers are (just another variable - containing addresses in their case),
- dereferencing pointers (and how * means two different things depends where it is),
- why we use pointers (passing by reference),
- functions in C and difference between passing by reference and by value.
We went trough some of the programs that Denis availed on Webcourses and are already in the Google Drive folder (01_Lectures > week3).
Those codes are pretty good to help you wrap your head around what those silly pointers. I recommend running them all and maybe tweak them a bit to see what happens. If time allows me, I'll try to make some videos of me playing with those codes and working on the Lab3 homework, so if you're struggling with the topic, feel free to check it!
Together we stand!
Comments
Post a Comment