• tunetardis@lemmy.ca
    link
    fedilink
    arrow-up
    35
    ·
    6 months 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
      ·
      6 months 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