C++ Pointers to Pointers - Finally Understand Double Pointers

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

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

  • @codebreakthrough
    @codebreakthrough  Год назад +3

    Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter

  • @brajlecz9485
    @brajlecz9485 Год назад +4

    Damn, caleb got in shape! great work!

  • @mitchellxiang9934
    @mitchellxiang9934 5 месяцев назад +1

    You really saved my life! Thanks Caleb!

  • @spidermanlift4527
    @spidermanlift4527 Год назад +3

    Hey Caleb, I started coding with arm assembly, and I learned that pretty well. But due to having to switch to C++ for a different project I struggled a lot with the syntax which your videoes helped a lot. Understanding how it works at a low level but not knowing how to do it is really frustrating.

  • @pastasawce
    @pastasawce Год назад +6

    What's a pirates favorite programming language? C! With Args!

  • @boryswwa
    @boryswwa Год назад

    08:03 Hi Caleb, could You explain, why we don't need to use a dereference operator (*data[i]) to get the strings in std::cout in this examle? if data[] is an array of pointers, and we get specific value from that array, shouldn't we get the address of the string as a return, rather than the string itself, since we are not using a dereference operator here? Or is do the brackets in the array reference dereference the pointer by definition?
    Great tutorials btw.!

  • @nobudev
    @nobudev 4 месяца назад

    Can I apply this with Golang ?

  • @GSeymore
    @GSeymore 10 месяцев назад

    Thank you!

  • @dwivedys
    @dwivedys 7 месяцев назад

    Pointers - while conceptually are not too complicated to understand - in practice blows the hell out of the brains!

  • @caiooliveira9108
    @caiooliveira9108 5 месяцев назад

    on pointer to a pointer, i still dont get why using double pointer. in the outer function , what memory address being changed if the memory address of data is actually pointing to the first memory address of inter array?? it seems for me just one later of pointers. additionally, what would have change if inner function data just have one * and the outter function passed & and just deference inside the outer function? it would present the same results as double pointers?

  • @jerardosandoval861
    @jerardosandoval861 Год назад

    Perfect. I have a final today

  • @meera.9404
    @meera.9404 Год назад

    Nice 👍

  • @luigichopper
    @luigichopper Год назад

    The chapters say 'ChatGPT'
    Informative video btw! 👍

    • @codebreakthrough
      @codebreakthrough  Год назад +2

      Oops, copied prev video and forgot to update timestamps. Just updated! Thanks.

    • @luigichopper
      @luigichopper Год назад

      @@codebreakthrough Np! I also watched your entire C++ series over the summer and learned a ton!

  • @harrysbidos
    @harrysbidos 6 месяцев назад

    Actually, reference pointer could be used instead... in the second example.

  • @meera.9404
    @meera.9404 Год назад

    Nice.

  • @Sydney268
    @Sydney268 Год назад

    Well I have no idea why it didn't work just copying the lvgl object pointers into an array - but it did when I made an array of pointers to pointers of lvgl objects?!
    static lv_obj_t **ta_time[4] = {&ui_SettingsTime1, &ui_SettingsTime2, &ui_SettingsTime3, &ui_SettingsTime4};

  • @The1RandomFool
    @The1RandomFool 5 месяцев назад

    Pointers to pointers; it no longer seems pointless.

  • @nachmeo1728
    @nachmeo1728 Год назад

    triple pointer