In C programming, a struct or structure is a collection of variables can be of different types under a single name. Object is a variable of type structure. To define a struct, the struct keyword is used. Like normal data type, It can also store an array as well.
Initialization of structure Like normal variable structures can be initialized at the time of declaration.
As we know, an array is a collection of similar type, therefore an array can be of structure type. The structure object is followed by equal sign and the list of values enclosed in braces and each value is separated with comma. Now, you need to create different variables for each information per person: name1, citNo1, salary1, name2, citNo2, salary2, etc.