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 "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).
3 years ago i learned more from this video that i learned in about 2 weeks of lectures. school fails
MrIonization 1 year ago
xD i love this video, it helped me :D
Metalmandy8 1 year ago
good bye Digg , long live Reddit!
milindame 1 year ago
int n;
n=42;
int* x=&n;
Vukobratina 1 year ago
This is pretty much my favourite video.
Foxillusion 1 year ago
I never knew you had to set up the pointee before you could dereference it.
DRiceisdead 1 year ago
This has been flagged as spam show
Binky's eye at 1:12 ...........
abhillz 1 year ago
This has been flagged as spam show
Binky's eye at 1:12 .......
abhillz 1 year ago
Comment removed
abhillz 1 year ago
Thumbs up if Digg.com sent you here!
artyen 1 year ago
@artyen
No Cus Reddit did (-;
GuerilleroX 1 year ago
everytime something new would pop on the table i thought someone messaged me on facebook
bpmbrent 1 year ago 5
@bpmbrent Then you realized it was the video.
Forever alone.
aegisfate117 1 year ago
@bpmbrent Me too. I kept switching tabs only to realize that I had no new messages. lol
triniclemist90 1 year ago
Use new(int) :D
uberOCD 1 year ago
This is the best pointer video ever!
Genkaiman 1 year ago
i would like this but i hate C. but i can't dislike it.
karmacop911 1 year ago
@karmacop911 How can you hate C?
TazeTSchnitzel 1 year ago
Comment removed
karmacop911 1 year ago
@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 1 year ago
@TazeTSchnitzel forget it. none of this makes any sense.
karmacop911 1 year ago
@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 1 year ago
@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.
TazeTSchnitzel 1 year ago
@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).
mgiuca 1 year ago
LOL I totally forgot I had this video uploaded
now 3 years later I get questions about it
sedthh 1 year ago 37
@sedthh It's actually on reddit
MicrosoftSam92 1 year ago
@sedthh That's what happens when Reddit gets a hold of something. :)
mattlorimor 1 year ago
@sedthh , it got posted on reddit; that's why the recent traffic
grokcalvin 1 year ago
@sedthh lol my computer science teacher used this video in class.
JonnytheAwesomeGuy 4 months ago
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.
ashconnor 1 year ago
My question is...What happened to 42?
michaeijd 1 year ago
@michaeijd got overwritten
cOlz23 1 year ago
Thanks you very much !
quanmom2502 1 year ago
hey hey HEY wat up ppl from cpsc 260!!
Justice4x 2 years ago
ez felettébb bizarr
Hepathos 2 years ago
sedthh programozni tanít? o_O
HentaiOniisama 2 years ago
hahah i love it.... such a crazy lesson.
MasterYinko 3 years ago
haha this video is sucha winner
cepopeye 4 years ago
woo that was immense!
scottdavies 4 years ago
haha thanks, quite informative
asjqwg 5 years ago