跳过导航
Professor Jerry Cain from Stanford University covers C programming, emphasizing pointers and…
0:00 / 5:41

Professor Jerry Cain from Stanford University covers C programming, emphasizing pointers and…

tetsuo

@tetsuoai26万 位关注者

在 X 上查看
6,572 个赞下载原帖

965,127 次观看

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.

10 条评论

评论来自 X (Twitter) 上的原帖

  • tetsuo.ai - e/acc 的头像

    @7etsuo

    Full Series: Stanford University - C programming

    481 个赞

  • Forestman 的头像

    @Forestmang

    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.

    57 个赞

  • tetsuo.ai - e/acc 的头像

    @7etsuo

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

    14 个赞

  • tetsuo.ai - e/acc 的头像

    @7etsuo

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

    44 个赞

  • alexbtaylor 的头像

    @alexbtaylor

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

    29 个赞

  • EJ Campbell 的头像

    @ejc3

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

    24 个赞

  • tetsuo.ai - e/acc 的头像

    @7etsuo

    lol

    1 个赞

  • Michelle Qin 的头像

    @michelleqin_

    That's my academic advisor!!

    23 个赞

  • tetsuo.ai - e/acc 的头像

    @7etsuo

    Holy crap, nice—he is actually cracked.

    8 个赞

  • Treylorswift 的头像

    @treylorswift

    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 😂

    13 个赞