// struct data types
#include <stdio.h>
struct student{
char name[20];
int rollno;
float marks;
} s1={"ABC",1,78.77},s2={"DEF",2,80},s3={"GHI",3,90},s4={"JKL",4,95};
int main() {
printf("Name = %s\tRollNo = %d\tMarks = %f",s1.name,s1.rollno,s1.marks);
printf("\nName = %s\tRollNo = %d\tMarks = %f",s2.name,s2.rollno,s2.marks);
printf("\nName = %s\tRollNo = %d\tMarks = %f",s3.name,s3.rollno,s3.marks);
printf("\nName = %s\tRollNo = %d\tMarks = %f",s4.name,s4.rollno,s4.marks);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: