Write A C Program to define a structure for storing employee details, employee name, date of joining and salary
struct employee { char name [20]; int day; char month [10]; int year; flaot salary; }; main ( ) { ...

https://www.computersprofessor.com/2016/12/write-c-program-to-define-structure-for.html
|
struct employee
{
char name [20];
int day;
char month [10];
int year;
flaot salary;
};
main ( )
{
struct employee emp;
printf ( “enter employee details”);
scanf(“%s%d%s%d%f”,&emp.name,&emp.day,&emp.month,&emp.year,&emp.salary);
printf (“employee name = %s \n date
of joining = %d%s%d \n salary = % f, emp.name, emp.day, emp.month, emp.year,
emp.salary);
getch ( );
}
|
|