simple program of stucture in c programming by user input -99webcode
include<stdio.h>
struct stdent
{
int rollno;
int age;
float mark;
char name[30];
};
void main()
{
struct stdent s1;
printf("enter std information of rollno,age,mark,name");
scanf("%d %d %f %c",&s1.rollno,&s1.age,&s1.mark,&s1.name);
printf("information of s1");
printf("rollis :%d\n age is:%d\n marks is:%f\n name is:%s",s1.rollno,s1.age,s1.mark,s1.name);
}