... notes by A.Kamburelis ... will be expanded and translated // Πίνακες Δομών We shall use the structure: struct Item { int key; int data }; key: may be AM, ADT, AFM, IKA... data: may be Name, Address etc We define array externally. Exercise: hide it, in main() #define N 20 // μήκος του πίνακα struct Item pin[N]; First, fill pin by random values and show it on the screen #include #include // for random numbers rand() #define N 20 // μήκος του πίνακα struct Item { int key; int data }; // new type struct Item pin[N]; // external array pin void fill(){ int i; for(i=0;i). Two steps. First, write a \b comparison\ function int MyCompare (const void *a, const void *b){ return ((struct Item *)a)->key - // minus ((struct Item *)b)->key; } Second, call qsort: qsort ( pin, N, sizeof(struct Item), MyCompare ); Details in Lab...