practice_C

Nested Structures

Exercises

  1. Define a person structure containing a nested date structure. Read and display a birth date in dd/mm/yyyy format.
  2. Define an employee structure containing a nested address structure, initialize it at declaration time, and display all details.
  3. 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.