Which is better to use union or struct?

If you want to use same memory location for two or more members, union is the best for that . Unions are similar to the structure. Union variables are created in same manner as structure variables.

Sizin İçin Seçtik  What is the use of typedef keyword in defining structures and unions?

Leave a Reply

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