• admin@embedclogic.com

Array of Structure

We know that array is the collection of similar data type elements. If we collect data type ‘struct’ then it is known as “Array of structure”.

Syntax
Example

or

In above two structure – ’emp’ is an array of 5 ’empInfo’ type structure.

Program

Output:

Subscribe and stay updated with our latest articles.