// array of structures
#include <stdio.h>
#include<string.h>
//user defined
struct student{
int roll;
float cgpa;
char name[100];
};
int main() {
struct student ece[100];
ece[0].roll = 1664;
ece[0].cgpa=9.2;
strcpy(ece[0].name,"shradha");
printf("name = %s",ece[0].name); //you can print other details too
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: