#hgfsagdfasgfhah

8 messages · Page 1 of 1 (latest)

ornate ginkgoBOT
#

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.

warm schooner
#

(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

ornate ginkgoBOT
#

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

ornate ginkgoBOT
#

<@undefined>

Please Do Not Delete Posts!

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.

warm schooner
#

What the heck?

dry jolt
#

hgfsagdfasgfhah