Nested Structure in C Programming with example

In this tutorial you’ll be learning about struct types or structure and an example of Nested Structure in C Programming. In C programming, a struct keyword is used to indicate structures that resembles a collection of variables with different types but under a single name.

Defining Structures

Unlike any other variables for which we immediately start with datatype, in case of structures we need to define its datatype. To define a structure in c programming, the struct keyword is used.

Syntax of struct

struct structureName {
    dataType fieldMember1;
    dataType fieldMember2;
    ....
};