Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Professor Jerry Cain from Stanford University covers C programming, emphasizing pointers and structs. He demonstrates an unconventional method to access struct fields. I highly recommend this entire 29-video series for anyone interested in C.

963,847 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von tetsuo.ai - e/acc
tetsuo.ai - e/accvor 2 Jahren

Full Series: Stanford University - C programming

Profilbild von Forestman
Forestmanvor 2 Jahren

Nothing unconventional here.. just basic pointer operations. It is, however not "didactic" or "orthodox" in its approach. The explanation is very good and all programmers should know this.

Profilbild von tetsuo.ai - e/acc
tetsuo.ai - e/accvor 2 Jahren

"We cannot direct the wind, but we can adjust the sails." — Dolly Parton 🤣

Profilbild von tetsuo.ai - e/acc
tetsuo.ai - e/accvor 2 Jahren

On my system ((struct fraction *) &(pi.denom)->denom=33 overwrites 4 bytes of the stack carnary and causes a SIGABRT. @alexbtaylor

Profilbild von alexbtaylor
alexbtaylorvor 2 Jahren

I mean .... it would print out a 33... or smash a stack or address space elsewhere and cause unpredictable behavior?

Profilbild von EJ Campbell
EJ Campbellvor 2 Jahren

Kids, this is why c programmers can’t have nice things

Profilbild von tetsuo.ai - e/acc
tetsuo.ai - e/accvor 2 Jahren

lol

Profilbild von Michelle Qin
Michelle Qinvor 2 Jahren

That's my academic advisor!!

Profilbild von tetsuo.ai - e/acc
tetsuo.ai - e/accvor 2 Jahren

Holy crap, nice—he is actually cracked.

Profilbild von Treylorswift
Treylorswiftvor 2 Jahren

Anyone else think that the drawing of memory with “higher” addresses going up is backwards? Higher addresses visually go down… at least, they do in my mind 😂

Ähnliche Videos