Added: 5 years ago
From: sedthh
Views: 41,597
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (42)

Sign In or Sign Up now to post a comment!
  • 3 years ago i learned more from this video that i learned in about 2 weeks of lectures. school fails

  • xD i love this video, it helped me :D

  • good bye Digg , long live Reddit!

  • int n;

    n=42;

    int* x=&n;

    

  • This is pretty much my favourite video.

  • I never knew you had to set up the pointee before you could dereference it.

  • Comment removed

  • Thumbs up if Digg.com sent you here!

  • @artyen

    No Cus Reddit did (-;

  • everytime something new would pop on the table i thought someone messaged me on facebook

  • @bpmbrent Then you realized it was the video.

    Forever alone.

  • @bpmbrent Me too. I kept switching tabs only to realize that I had no new messages. lol

  • Use new(int) :D

  • This is the best pointer video ever!

  • i would like this but i hate C. but i can't dislike it.

  • @karmacop911 How can you hate C?

  • Comment removed

  • @karmacop911 Actually, no.

    *y dereferences y.

    *x dereferences x.

    So *x = *y sets what x POINTS TO to the VALUE that y points to.

    Or, it sets x's pointee's value to whatever y's pointee's value is.

    I know from experience.

  • @TazeTSchnitzel forget it. none of this makes any sense.

  • @TazeTSchnitzel well, consider these semantic trainwrecks:

    *x = y;  // easy mistake, hard to catch

    x = *y; // violates concept of pointers

    pointers are easy to confuse with variables and worse, complicate the meaning of the equals sign. you should just let people store addresses in variables and be done with it.

    C's semantics are atrocious and horribly outdated.

  • @karmacop911 It does make sense.

    It is occasionally useful to find the value of a pointer, i.e. the address not what it points to.

  • @karmacop911 "you should just let people store addresses in variables and be done with it" -- that's precisely what a pointer is.

    Lastly, pointers do not complicate the meaning of the equals sign. The equals sign works the same for pointers as it does for anything else, it's just that people are often confused by the semantics of the pointers (and might think they are assigning the data when they are actually copying the pointer).

  • LOL I totally forgot I had this video uploaded

    now 3 years later I get questions about it

  • @sedthh It's actually on reddit

  • @sedthh That's what happens when Reddit gets a hold of something. :)

  • @sedthh , it got posted on reddit; that's why the recent traffic

  • @sedthh lol my computer science teacher used this video in class.

  • This was a great help and an excellent video.

    I must now get over the trauma of Blinky exploding which I think will cancel out any positive educational experience I've had with the video.

    Regards.

  • My question is...What happened to 42?

  • @michaeijd got overwritten

  • Thanks you very much !

  • hey hey HEY wat up ppl from cpsc 260!!

  • ez felettébb bizarr

  • sedthh programozni tanít? o_O

  • hahah i love it.... such a crazy lesson.

  • haha this video is sucha winner

  • woo that was immense!

  • haha thanks, quite informative

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