Hi,
I'm trying to define a dynamic array that consists of an email address and a home address. How can I define them dynamically using malloc() in the below struct?
typedef struct entry{
char name[40]; /* contains name */
char phone_number[9]; /* contains phone number */
struct entry *next ; /* next is used to navigate through structures. */
} contact;