What does it mean to convert an integer value to a void* or viceversa from a memory point of view?
My understanding is void* is an address to a blo
It would be like comparing apples with oranges if any attempt was being made to make any comparison. But there isn't. Basically, in the majority of architectures out there, an int can be casted to a void pointer without the loss of any information, and a void pointer can also be casted back to an int, again without the loss of any information. Of course, you should not try dereferencing that pointer, because it does not point to any meaningful memory location: it is just a variable containing the same bit-pattern as the bit pattern that the integer used to contain before the cast.