CT2 - C Pointers In Depth Explanation
Hi y'all!
We are 6 weeks deep into year 2, semester 1 and soon we will be facing our first CT2 Assignment, which is basically a quick test.
Nothing to worry about, none of it will be overwhelmingly hard, it's just something we need to prepare to in an organised fashion. We didn't cover that much during this semester, except for the fact that the pointers themselves are just a b*tch to comprehend...
So maybe let's have a look at them in depth, huh (I'll cover the basics of C later)? I've been approaching pointers for over a year before it finally got to me. The concept itself is actually very easy, but then the dinosaurs who created C decided to make it super confusing for anyone who didn't create this language!
Throughout my journey with pointers I went through different phases: fear, courage, fear again, resentment, anger, youtube searching and enlightenment. Something like that.
What helped me to really get the knowledge to sink in was making this little code that you can find in a link below:
pointers.c
Feel free to download or copy it and go through it. To help you to fully understand what that mumbo jumbo of mine means check my videos below.
(btw, I said it in my videos, but want to repeat it here, after going through my code make sure you create your own! Something similar, something that answers any of your questions about pointers.)
We are 6 weeks deep into year 2, semester 1 and soon we will be facing our first CT2 Assignment, which is basically a quick test.
Nothing to worry about, none of it will be overwhelmingly hard, it's just something we need to prepare to in an organised fashion. We didn't cover that much during this semester, except for the fact that the pointers themselves are just a b*tch to comprehend...
So maybe let's have a look at them in depth, huh (I'll cover the basics of C later)? I've been approaching pointers for over a year before it finally got to me. The concept itself is actually very easy, but then the dinosaurs who created C decided to make it super confusing for anyone who didn't create this language!
Throughout my journey with pointers I went through different phases: fear, courage, fear again, resentment, anger, youtube searching and enlightenment. Something like that.
What helped me to really get the knowledge to sink in was making this little code that you can find in a link below:
pointers.c
Feel free to download or copy it and go through it. To help you to fully understand what that mumbo jumbo of mine means check my videos below.
(btw, I said it in my videos, but want to repeat it here, after going through my code make sure you create your own! Something similar, something that answers any of your questions about pointers.)
Let me know if you have any comments or you spotted any mistakes. I know I choked a bit on arrays, so I'll come back to it at some stage.
Also, stay tuned, more videos preparing us to the dreaded C test coming up soon!
Cheers
Comments
Post a Comment