C Array of Structures
C Array of Structures: In order to store multiple data of different data types, an array of structures is used. Example: #include<stdio.h> #include <string.h> struct student { int roll_no; char name[30]; }; void main( ) { struct student s[3]; int i; s[0].roll_no = 1; strcpy(s[0].name, "Vibhuti Singh"); s[1].roll_no = 2; strcpy(s[1].name, "Yashvendra … Read more