What is a union C++?

A union is a special class type that can hold only one of its non-static data members at a time . The class specifier for a union declaration is similar to class or struct declaration: union attr class-head-name { member-specification }

Read more

What is a union C++?

A union is a special class type that can hold only one of its non-static data members at a time . The class specifier for a union declaration is similar to class or struct declaration: union attr class-head-name { member-specification }

Read more