/* Structure - Program on hockey players Define a structure called "hockey"containing following elements: 1)player name 2)Country name 3)no of matches played 4)no of goals scored Write a program to read records of n players and to prepare the following lists 1) List prepared according to player's name 2) List prepared according to country's name 3) List prepared according to no. of matches played 4) List prepared according to no. of goals scored */ #include #include #include void main() { struct hockey { char pname[20] ; char cname[20] ; int np ; int ng ; } ; struct hockey player[50], temp ; int i, j, n ; clrscr(); printf("Enter the number of players: ") ; scanf("%d", &n) ; printf("Enter player name , country name , number of matches played and no of goals scored for all players:\n\n") ; for(i=0 ; i 0 ) { temp=player[j]; player[j]=player[j+1]; player[j+1]=temp; } printf("\nList in alphabetical order of country name is as shown:\n") ; for(i=0 ; i 0 ) { temp=player[j]; player[j]=player[j+1]; player[j+1]=temp; } printf("\nList in alphabetical order of player name is as shown:\n") ; for(i=0 ; i