How we can access the members of union?

Difference between structure and union in C: C StructureC UnionWe can access all members of structure at a time.We can access only one member of union at a time.Structure example: struct student { int mark; char name[6]; double average; };Union example: union student { int mark; char name[6]; double average; };C Union with examples – Fresh2Refresh fresh2refresh.com › C Programming Tutorial

Sizin İçin Seçtik  Pound sterlin aynı mı?

Leave a Reply

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