• tunetardis
    link
    fedilink
    arrow-up
    38
    ·
    1 month ago

    Fair, though I guess my interpretation was that void* is kind of like a black hole in that anything can fall into it in an unsettling way that loses information about what it was?

    • Traister101@lemmy.today
      link
      fedilink
      arrow-up
      10
      ·
      1 month ago

      It erases the type of what your pointing at. All you have is a memory location, in contrast to int* which is a memory location of an int