STM32 Tutorial #35 - DEMYSTIFYING C Pointers (and Variables)

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 3

  • @niclash
    @niclash 4 дні тому +2

    The only thing I can think of is that C programmers don't write "uint8_t *ap = &a[0];" If one just want the address of the start of the array, then "uint8_t *ap = a;" is the more common and less verbose way. This is especially common when manipulating "strings" which in C doesn't exist and are simply "character arrays". I suggest that you make a video on strings, since it often confuses newcomers.

    • @stm32world
      @stm32world  4 дні тому +1

      Yes, I know this but wanted to make it clear - hence more verbose ;) I should have mentioned that.

    • @stm32world
      @stm32world  6 годин тому

      You are absolutely right about the strings. I originally planned that but by the time I was getting around to it the video was getting too long. I will add one.