• jdr@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    18 days ago

    That’s why you write

    int *x, y, **z;

    C doesn’t write like “x is an int-pointer”, rather it says “dereferencing x will get you an int”.

    • anotherandrew
      link
      fedilink
      English
      arrow-up
      12
      ·
      18 days ago

      100% and why I think int* should be at the least a compiler warning, perhaps an outright error with pedantic enabled.