Learn Pointers In 14 Minutes

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 30

  • @lakeeriecardco.8692
    @lakeeriecardco.8692 2 месяца назад

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

  • @filipjuroszek8187
    @filipjuroszek8187 7 дней назад

    I finally understand it, thanks!

  • @Daniel.W.R.Rehman
    @Daniel.W.R.Rehman 2 месяца назад +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  2 месяца назад +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

  • @lebanbo55
    @lebanbo55 2 месяца назад +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.

  • @Randorandom232
    @Randorandom232 2 месяца назад

    One of your best vids!

    • @MadisonKanna
      @MadisonKanna  2 месяца назад

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

    • @Randorandom232
      @Randorandom232 2 месяца назад

      @MadisonKanna haha, glad you understand despite my typo

  • @jronbroke
    @jronbroke 2 месяца назад

    Thanks alot ma'am. it was very helpful.

  • @juanmacias5922
    @juanmacias5922 2 месяца назад +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  2 месяца назад +1

      seriously that is mind blowing

    • @Moo56k2
      @Moo56k2 2 месяца назад +1

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

  • @echobucket
    @echobucket 2 месяца назад +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.

  • @jeremyhall6168
    @jeremyhall6168 2 месяца назад

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

  • @synen
    @synen 2 месяца назад

    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.

  • @VictorGabriel-uh8ne
    @VictorGabriel-uh8ne 2 месяца назад

    The algorithm gods did me a big favor today

    • @MadisonKanna
      @MadisonKanna  2 месяца назад +2

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

  • @pankajgoswami665
    @pankajgoswami665 2 месяца назад

    Is it essential to learn coding in future?

  • @ervinasgrigonis8139
    @ervinasgrigonis8139 2 месяца назад

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

  • @mb59621
    @mb59621 16 дней назад

    This is something you don't really want to go too much into or you end up being one of the old neck bearded dudes on stackoverflow writing word blocks beginning with : "That's undefined behaviour..."

  • @42boolean
    @42boolean 2 месяца назад

    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  2 месяца назад

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

  • @levacarvalho
    @levacarvalho Месяц назад

    You look like a goddess, I envy your experience and existence

  • @Abhay-cc3nq
    @Abhay-cc3nq 2 месяца назад

    loves from india sir

    • @Blamee
      @Blamee 2 месяца назад +1

      Abhay bhai maa kasam kuch samjh ni aya

    • @Abhay-cc3nq
      @Abhay-cc3nq 2 месяца назад +1

      @Blamee Khachi bhay starting se dekho lectures

    • @DorkDork69
      @DorkDork69 2 месяца назад

      Creep