Union: Accessing Union Members & Nesting in C

To access union members we can use dot operator (.) between union variable and union member name as follows: <Union-Variable-Name>.<MemberAddress> For example, to access marks of union student we can do as follows: union student std2; std2.marks = 20; Now, the data member percentage of union student also contains the same value 20 but in … Read more