/* Structure - Employee ID Sort - Program to create an array of structure to store details of almost 100 employees and sort it according to employee ID. Employee details are as follows: 1) Employee Name , 2) Employee ID and 3) Employee Salary */ #include #include void main() { struct employee { char name[20] ; int id ; float salary ; } ; /* Some compilers do not allow float member in a structure. In that case make salary to be of data type int */ struct employee e[100], temp ; int i, j, n ; clrscr() ; printf("Enter the number of employees: ") ; scanf("%d", &n) ; printf("Enter employee name , id and salary for all employees: \n") ; for(i=0 ; i e[j+1].id) { temp=e[j]; e[j]=e[j+1]; e[j+1]=temp; } printf("\nList in ascending order of employee id is as shown:\n") ; for(i=0 ; i