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 ( ) { ...


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 ( );
}



Related

C Programs 1797291219625206884

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item