Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前void *sh.itjust.worksimagemessage-square13linkfedilinkarrow-up1648arrow-down110
arrow-up1638arrow-down1imagevoid *sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前message-square13linkfedilink
minus-square🇨🇦 tunetardis@lemmy.calinkfedilinkarrow-up38·1 年前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?
minus-squareTraister101linkfedilinkarrow-up10·1 年前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
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?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