Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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,897 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

tetsuo.ai - e/acc profil fotoğrafı
tetsuo.ai - e/acc2 yıl önce

Full Series: Stanford University - C programming

Forestman profil fotoğrafı
Forestman2 yıl önce

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.

tetsuo.ai - e/acc profil fotoğrafı
tetsuo.ai - e/acc2 yıl önce

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

tetsuo.ai - e/acc profil fotoğrafı
tetsuo.ai - e/acc2 yıl önce

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

alexbtaylor profil fotoğrafı
alexbtaylor2 yıl önce

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

EJ Campbell profil fotoğrafı
EJ Campbell2 yıl önce

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

tetsuo.ai - e/acc profil fotoğrafı
tetsuo.ai - e/acc2 yıl önce

lol

Michelle Qin profil fotoğrafı
Michelle Qin2 yıl önce

That's my academic advisor!!

tetsuo.ai - e/acc profil fotoğrafı
tetsuo.ai - e/acc2 yıl önce

Holy crap, nice—he is actually cracked.

Treylorswift profil fotoğrafı
Treylorswift2 yıl önce

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 😂

Benzer Videolar