Making Structure In C
#include<stdio.h>
#include<conio.h>
struct employee
{
char name[20];
int employee,salary;
};
employee e;
void main()
{
printf("enter the emoloyee name");
scanf("%s",&name);
printf("enter the employee no");
scanf("%d",&employeeemployee no);
printf("enter the salary");
scanf("%d",&employee salary);
printf("name is %s",employee name);
printf("salary is %d",employee salary);
printf("employee no is %d",employee.employee no);
getch();
}
Comments
Post a Comment