can sameone help to know why when I insert the first and last and phone number my code dumped
//////////////////////////////
myRolodex Command: I
Enter card: name phone
slex john 415 555 4444
void insertCard(card *newCard)
{
printf("Enter card: name phone \n ");
scanf("%s ",&newCard->last[i]);/// are you reading to the address of a pointer?
scanf("%s ",&newCard->first[i]);
scanf("%s", &newCard->phone_number[i]);
}
void insertCard(card *newCard)
{
printf("Enter card: name phone \n "); ///why not just use this
scanf("%s ",newCard->last[i]);
scanf("%s ",newCard->first[i]);
scanf("%s", newCard->phone_number[i]);
}