Nested Structure in C

tutorial and example
tutorial and example

In C language, we can create nested Structure (Structure within Structure). There are two ways to define nested structure.

  1. By separate structure
  2. By Embedded structure
  3. Separate structure:

In separate structure, we can create one or more structure inside the main structure as a member.


  1. Embedded structure:

Embedded structure can be createdwithin the structure. Let us consider how to declare the embedded structure.



Write a program of Nested structure in C language?