P
Peter
It's not that uncommon to see code where integral type is cast to a pointeror vice versa. On this page:
https://computing.llnl.gov/tutorials/pthreads/
you can see a few examples of casting void* to long, long to void* etc. Does standard address such conversions in any way other than calling them "undefined behaviour"? If not then why do people use them? Are they well defined for a particular compiler/hardware?
https://computing.llnl.gov/tutorials/pthreads/
you can see a few examples of casting void* to long, long to void* etc. Does standard address such conversions in any way other than calling them "undefined behaviour"? If not then why do people use them? Are they well defined for a particular compiler/hardware?