structure in c example, structure in c programming, structure in c pdf, array of structure in c, structure in c ppt, structure in c tutorial, pointer to structure in c, size of structure in c, structure program in c examples, c program examples using structures, c program using structure, simple structure program in c, structure programs in c language, structure program in c pdf, structure program in c using array, structure of c language, Searches related to basics of structure program in c, basic structure of c program pdf, explain the basic structure of c program with an example, basic structure of c program ppt, structure program in c using array, simple structure program in c, structure program in c language, basic structure of computer,
Write C Program to display structure element with example
#include
#include
void main()
{
struct stud
{
float rno;
char name[10];
int m1,m2,m3;
} s[50];
{
int i;
printf("enter data of five student=");
for(i=0;i<=5;i++)
{
clrscr();
printf("enter roll no=");
scanf("%f",&s[i].rno);
printf("enter name of student=");
scanf("%s",s[i].name);
printf("enter mark of three subj=\n");
scanf("%d%d%d",&s[i].m1,&s[i].m2,&s[i].m3);
}
for(i=0;i<=5;i++)
{
clrscr();
printf("\n\n\n\t\t college of IMSCDR");
printf("\n---------------------------------------------------------");
printf("\n\t roll no=%f",s[i].rno);
printf("\n-----------------------------------------------------------");
printf("\n\t name of student=%s",s[i].name);
printf("\n---------------------------------------------------------------");
printf("\n\t marks of 1st subj\t\t=%d",s[i].m1);
printf("\n\t marks of 2nd subj\t\t=%d",s[i].m2);
printf("\n\t marks of 3rd subj\t\t=%d",s[i].m3);
printf("\n----------------------------------------------------------------");
printf("\n\n\t\t\t\t press any key to continue....");
getch();
}
}
}
void link1()
{
float x, *ptr=&x;
}