C language how to create a list of structures

C language how to create a list of structures

In C, a struct is a custom data type.
As with other standard data types, we can define arrays of that type.
This is used to represent a list.

struct student
{
    char name[20];
    int age;
};

struct student arr_stu[50]; // Define a structure array of 50 students
Source‮‬:www.lautturi.com
Created Time:2017-08-29 04:27:02  Author:lautturi