3 ms·
Sadly C and C++ have aliasing rules, so casting a pointer to another type is often UB instead of having the underlying memory take the form of the new type.
by nyanpasu64 4y ago
Sadly C and C++ have aliasing rules, so casting a pointer to another type is often UB instead of having the underlying memory take the form of the new type.