Learn Pointers In 14 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 29

  • @lakeeriecardco.8692
    @lakeeriecardco.8692 6 วันที่ผ่านมา

    Great synopsis, and easily digestible! Keep up the great work, looking forward to the next cs50 walkthrough.

  • @lebanbo55
    @lebanbo55 22 วันที่ผ่านมา +3

    Hi Madison , great video. Strictly speaking, the address you print @9:00 is not real address , is virtual address in comparison with physical address. The OS turns physical address into virtual address in order to protect the process.

  • @juanmacias5922
    @juanmacias5922 21 วันที่ผ่านมา +2

    What blew my mind is how in C an array is just a reference to a group of bytes. So, arr[0] goes to the original reference, while arr[3] does pointer arithmetic to point to the right index. lol So, 0x123 + (size of type * 3)

    • @MadisonKanna
      @MadisonKanna  21 วันที่ผ่านมา +1

      seriously that is mind blowing

    • @Moo56k2
      @Moo56k2 19 วันที่ผ่านมา +1

      I think that the compiler treats
      arr[i] as *(arr +(i × sizeof(*arr)).
      It doesn't matter if i is 0 or 3.

  • @Daniel.W.R.Rehman
    @Daniel.W.R.Rehman 21 วันที่ผ่านมา +1

    One of the most clear and concise explanations of pointers online, in my opinion. This video was amazing!! Eventually I feel like it might be fascinating to see a video by you about how pointers work in assembly, and how what you mention here maps to the actual machine instructions/machine code that is executed by the CPU. ..Also love the Warp and Neovim setup :) Keep up the amazing stuff Madison! You rock!

    • @MadisonKanna
      @MadisonKanna  21 วันที่ผ่านมา +2

      wow thanks so much for watching and for the feedback! ooh learning about pointers in assembly sounds kind of mind blowing, I definitely need to learn about that next

  • @jeremyhall6168
    @jeremyhall6168 17 วันที่ผ่านมา

    Look who's dropping some cracked videos on C. Based.

  • @jronbroke
    @jronbroke 20 วันที่ผ่านมา

    Thanks alot ma'am. it was very helpful.

  • @echobucket
    @echobucket 21 วันที่ผ่านมา +1

    This is great, if you wanted to revise this I think after you make the p pointer variable switch back to your diagram of memory and show how another memory cell is storing the address.

  • @Randorandom232
    @Randorandom232 21 วันที่ผ่านมา

    One of your best vids!

    • @MadisonKanna
      @MadisonKanna  21 วันที่ผ่านมา

      thank you so much! that means a lot to me :)

    • @Randorandom232
      @Randorandom232 21 วันที่ผ่านมา

      @MadisonKanna haha, glad you understand despite my typo

  • @synen
    @synen 21 วันที่ผ่านมา

    Your video was clear. Now, it would be nice to have follow up videos as to why we have pointers, their uses, pros and cons, that sort of thing, thank you.

  • @cslearningatoz
    @cslearningatoz 21 วันที่ผ่านมา +1

    great!!!. more content about pointers please! Your explain very easy to understand about pointer

    • @MadisonKanna
      @MadisonKanna  21 วันที่ผ่านมา +1

      thank you!! will do!

  • @VictorGabriel-uh8ne
    @VictorGabriel-uh8ne 20 วันที่ผ่านมา

    The algorithm gods did me a big favor today

    • @MadisonKanna
      @MadisonKanna  20 วันที่ผ่านมา +2

      aw, thank you for watching - I appreciate you, Victor!

  • @ervinasgrigonis8139
    @ervinasgrigonis8139 21 วันที่ผ่านมา

    Please explain malloc in the same way. Thank you :)

  • @pankajgoswami665
    @pankajgoswami665 20 วันที่ผ่านมา

    Is it essential to learn coding in future?

  • @42boolean
    @42boolean 20 วันที่ผ่านมา

    the problem with "pointers" is that "understanding" is misleading, because there is so many ways you can use pointers that makes you realize you don't really "understand" it, people should focus more on getting their hands dirty and exploring everything you can do with pointers, because then is when these simple explanations finally click.
    while a high level understanding of what pointers are is necessary, it would be nice that when pointers are brought up is also shown the quirks of them, double pointers, pointer to functions, pointer arithmetic etc etc

    • @MadisonKanna
      @MadisonKanna  20 วันที่ผ่านมา

      you make a really solid point, 42boolean. also, I love your username. I think I need to get my hands more dirty with pointers!!

  • @Abhay-cc3nq
    @Abhay-cc3nq 20 วันที่ผ่านมา

    loves from india sir

    • @Blamee
      @Blamee 20 วันที่ผ่านมา +1

      Abhay bhai maa kasam kuch samjh ni aya

    • @Abhay-cc3nq
      @Abhay-cc3nq 20 วันที่ผ่านมา +1

      @Blamee Khachi bhay starting se dekho lectures

    • @DorkDork69
      @DorkDork69 20 วันที่ผ่านมา

      Creep