Can structure be a member of a union?

You can access the members , the way you are trying( but the structures which are inside the union should have unique members) but you should make sure that while compiling the code gcc should know that you are trying like that, command : gcc -fms-extensions file_name.

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 *