C++ Basic Skills: Lesson 13 "Pointer Arithmetic and a Note on Arrays"

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,363
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 12, 2009

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.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • I LOVE UR TYPING SPEED

  • 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

  • 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

  • Muchos gustos senor, gracias. BTW, what are you using there, Apple or Linux?

  • God bless u.

  • thaaaaaaaaanx duuuuuuuude verrrrrrry muchhh

  • 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..

  • Yes, great video thanks. I'm taking c++ part two, and we are learning pointers and dynamic memory. Cool concepts.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more