Nested Structures
Exercises
- Define a person structure containing a nested date structure. Read and display a birth date in
dd/mm/yyyy format.
- Define an employee structure containing a nested address structure, initialize it at declaration time, and display all details.
- Access a nested date structure inside a student structure using pointers, and change the admission year through a separate pointer to the inner structure.
Click here for explanation and solution.