#include<stdio.h>
struct student
{
int roll;
char name[10] ;
} stu = {42,"MAHIPAL"};
int main(void)
printf("Roll is %d\n\t",stu.roll);
printf("\nName is %s",stu.name);
}
gcc
Roll is 42 Name is MAHIPAL