Should you use unions in C++?

Unions are moderately useful in C and largely useless in C++ . It would be correct to say that in C++ they’re a “remnant from C++ being based on C”, but not to say they’re “a remnant from the C only days” as if C++ supercedes C.25 Oca 2011

Sizin İçin Seçtik  What is union in C advantages and disadvantages?

Leave a Reply

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