When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
8 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
(1) type casting exists at the second tier of operator precedent
(2) it is used to reinterpret the type of the data pointed to by a pointer
(3) alongside reinterpreting void pointers, it can either be used for structs with identical starting elements, or to cast to a char* to read byte by byte the data of an object.
However, reinterpreting to incompatible types is technically undefined behaviour. So if you point to an integer, reinterpreting that as a float is not valid
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
<@undefined>
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
What the heck?
hgfsagdfasgfhah