0% found this document useful (0 votes)
6 views11 pages

Array Of Structures

Uploaded by

sashaisunreal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views11 pages

Array Of Structures

Uploaded by

sashaisunreal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Array Of

Structures
BY- RAZIBUL HOQUE
ROLL NO - 21RISTCSE024
Contents
Introduction
General form of structure declaration
Array of structure
Conclusion
Reference
Introduction
An array of structures in C
programming is a collection of different
datatype variables, grouped under a
single name.
General form of structure declaration
The structural declaration is as follows −

Here, struct is the keyword


tagname specifies name of
structure
member1, member2 specifies
the data items that make up
structure.
Example

The following example


shows the usage of array
of structures in C
programming −
Array of structures
•The most common use of structure in C programming is an
array of structures.
•To declare an array of structure, first the structure must be
defined and then an array variable of that type should be
defined.
•For Example − struct book b[10]; //10 elements in an array of
structures of type ‘book’
Example
The following program shows the
usage of array of structures.
Output
When the above program is executed, it
produces the following result −
Conclusion
An array of structures in C can be defined as the collection of multiple structures
variables where each variable contains information about different entities. The
array of structures in C is used to store information about multiple entities of
different data types. The array of structures is also known as the collection of
structures.
Reference
Website-
https://www.javatpoint.com/array-of-structures-
in-c

You might also like