Instead of moving straight to dynamic memory allocation, we look briefly at something called pointer arithmetic and how arrays use it with the bracket operator. We also learn why arrays start at index 0 instead of 1.
If we look at the first one it ends with 9fc. When you add 4 to 9fc that gives you a00.
The scope of those numbers is from 1-9, and then a-f (a being 10, f being 15).
When adding 4 to 9fc, it gives us 9fd, 9fe, 9ff, and then we go out of range so we carry 1 over to f, which also makes us carry 1 over to 9, so the value of 9 becomes a (remember - a = 10 in base 16).
Hope it helps if anyone was wondering - english isn´t my first language so bear with me
would you please tell me what compiler are you using? i've been searching for a compiler for years, and I finally found a Mac user who compiles C++. Please reply asap
This is the first video from your collection that I have viewed, but I have already subscribed. I was looking around for some tutorials and more than anything was impressed how you keep a nice clear formatting structure. I think that shows more than anything that you are programmer to listen to, plus you are a ruddy fast typist.
I LOVE UR TYPING SPEED
tomcruise8419 3 weeks ago
The memory addresses are base 16 numbers..
If we look at the first one it ends with 9fc. When you add 4 to 9fc that gives you a00.
The scope of those numbers is from 1-9, and then a-f (a being 10, f being 15).
When adding 4 to 9fc, it gives us 9fd, 9fe, 9ff, and then we go out of range so we carry 1 over to f, which also makes us carry 1 over to 9, so the value of 9 becomes a (remember - a = 10 in base 16).
Hope it helps if anyone was wondering - english isn´t my first language so bear with me
vidirr20 3 months ago
would you please tell me what compiler are you using? i've been searching for a compiler for years, and I finally found a Mac user who compiles C++. Please reply asap
samicrims 1 year ago
Muchos gustos senor, gracias. BTW, what are you using there, Apple or Linux?
tstruss912 1 year ago
God bless u.
nooshabe 2 years ago
thaaaaaaaaanx duuuuuuuude verrrrrrry muchhh
AaDoOoNy 2 years ago
This is the first video from your collection that I have viewed, but I have already subscribed. I was looking around for some tutorials and more than anything was impressed how you keep a nice clear formatting structure. I think that shows more than anything that you are programmer to listen to, plus you are a ruddy fast typist.
Thank you very much for that tutorial..
martinbobfrank 2 years ago
Yes, great video thanks. I'm taking c++ part two, and we are learning pointers and dynamic memory. Cool concepts.
Wizard4592 2 years ago