177k views
5 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 Achim
by
6.1k points

1 Answer

4 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 Karol Lewandowski
by
5.4k points