I need help to fix my code. I dont need the entire code.Cre

I need help to fix my code. I don’t need the entire code.Create a program thatcreates a structure array to hold contact information for your friends. Theprogram should allow the user to enter up to five friends and print the phonebook’s current entries. Create functions to add entries in the phone book andto print valid phone book entries. Do not display phone book entries that areinvalide or NULL (0).This is my code:#include

#include

#include

typedef struct PhoneBook_Contacts{char FirstName[20];char LastName[20];char PhoneNumber[20];} phone;void AddEntry(phone*);void DeleteEntry(phone*);void PrintEntry(phone*);char deleteFirstName[20]={‘?’};char deleteLastName[20]={‘?’};char deletePhoneNumber[20]={‘?’};int x=0;int counter=0;phone phonebook[500];int main(void){int iSelection=0;while(iSelection!=4){printf(‘ntttPhonebook Menu’);printf(‘nnt(1)tAdd Friend’);printf(‘nt(2)tDelete Friend’);printf(‘nt(3)tDisplay Phonebook Entries’);printf(‘nt(4)tExit Phonebook’);printf(‘nnWhat would you like to do?’);scanf(‘%d’,&iSelection);if(iSelection==1){AddEntry(phonebook);}if(iSelection==2){DeleteEntry(phonebook);}if(iSelection==3){PrintEntry(phonebook);}if(iSelection==4){printf(‘The Phonebook will now exit.’);system(‘cls’);}}}void AddEntry(phone*phonebook){counter++;phonebook=malloc(counter*sizeof(phone));printf(‘First Name:’);scanf(‘%s’,phonebook[counter-1].FirstName);printf(‘Last Name:’);scanf(‘%s’,phonebook[counter-1].LastName);printf(‘Phone Number:’);scanf(‘%s’,phonebook[counter-1].PhoneNumber);printf(‘nnFriend successfully added to Phonebook’);}void DeleteEntry(phone*phonebook){counter++;printf(‘First Name:’);scanf(‘%s’, deleteFirstName[counter-1]);printf(‘Last Name:’);scanf(‘%s’,deleteLastName[counter-1]);for(x=0;x