typedef in c programming with example | typedef struct in c programming - 99webcode
#include<stdio.h>
typedef struct student
{
int roll;
int age ;
float marks;
}std;
void main()
{
std s1={11,23,88.7};
printf("%d\n %d\n%f",s1.roll,s1.age,s1.marks);
}
output: