Attachment 12584Attachment 12585Attachment 12586
Hi,
Enclosed my phonebook code.
could you please explane the need of this line:
This line is needed but I don't understand why ...Code:phonebook=(phone*)malloc(sizeof(phone));
Thanks in advanced
Code:int main(void)
{
char userChoice;
phone *phonebook;
phone *phonebook_ptr[100];
phonebook=(phone*)malloc(sizeof(phone));
phonebook_ptr[counter]=(phone*)malloc(sizeof(phone));
.....
}