What is tagged union in C?

In computer science, a tagged union, also called a variant, variant record, choice type, discriminated union, disjoint union, sum type or coproduct, is a data structure used to hold a value that could take on several different, but fixed, types .

Sizin İçin Seçtik  Why do we use union inside structures in C?

Leave a Reply

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