• YaBoyMax@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    I think you’ve got it backwards. I learned to read pointer decls from right-to-left, so const int * is a (mutable) pointer to an int which is const while int *const is a const pointer to a (mutable) int.

    • Traister101
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      Fuck me man that’s what I get for writing that just before bed