Are unions bad in C?

Unions are moderately useful in C and largely useless in C++. … Yes, there are other solutions to the same problem (mainly casting between pointer types), but unions are often cleaner and better self-documenting.

Sizin İçin Seçtik  What has short wavelength and high frequency?

Leave a Reply

Your email address will not be published. Required fields are marked *