/* Structure - Mobile customers -Program to read the names of mobile customers through keyboard and sort them alphabetically on last name. Display the sorted list on monitor. */ #include #include #include void main() { struct name { char fname[20] ; char lname[20] ; } ; struct name x[50], temp ; int i, j, n ; clrscr() ; printf("Enter the number of mobile customers: ") ; scanf("%d", &n) ; printf("Enter names of mobile customers in the format: \n") ; printf("FIRST NAME LAST NAME \n") ; for(i=0 ; i0 ) { temp=x[j] ; x[j]=x[j+1] ; x[j+1]=temp ; } printf("\nList sorted alphabetically as per last name is as shown:\n") ; for(i=0; i