63,577 views
16 votes
16 votes
To nest one structure within another structure, you a. define both structures and then create a data member of the nested structure type within the other structure b. create a container that holds objects of the nested structure type and then include the container within another structure c. define the nested structure within another structure

User Gaston Claret
by
2.9k points

1 Answer

17 votes
17 votes

Answer:

Hence the correct option is option a) define both structures and then create a data member of the nested structure type within the other structure.

Step-by-step explanation:

To make Address nested to Employee, we've to define Address structure before and out of doors Employee structure and make an object of Address structure inside Employee structure.

For example, we may need to store the address of an entity employee in a structure.

User Deke
by
3.1k points