//Initialization of structure members
#include<stdio.h>
struct student
{
char name[20];
int rollno;
float marks;
}s1={"ABC",1,78.77};
int main()
{
struct student s2={"XYZ",2,89.66},s3={"PQR",3,66.45};
printf("Detail of student 1------>\n");
printf("Name=%s\nRollNo=%d\nMarks=%f\n",s1.name,
s1.rollno,s1.marks);
printf("\nDetail of student 2------>");
printf("\nName=%s\nRollNo=%d\nMarks=%f\n",s2.name,
s2.rollno,s2.marks);
printf("\nDetail of student 3------>");
printf("\nName=%s\nRollNo=%d\nMarks=%f\n",s3.name,
s3.rollno,s3.marks);
return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: