Structures cont.
Example - id cards: struct personal_id { int id_number; char first_name[15]; char middle_name[15]; char last_name[20]; struct { char street[100], city[50]; unsigned int house_number, zip; } address; struct personal_id * father; };typedef struct personal_id ID ;ID myself; myself.first_name = “Aya”;myself.last_name = “Aner”;int Check_Relate(ID per1, ID per2) { if (strcmp(per1.last_name,per2.last_name)==0) return 1;}