Question: Given below is a structure definition. struct Contact ( char name[20] int phone_num; int postalcode; The members name, phone_num and postalcode are used to store

 Given below is a structure definition. struct Contact ( char name[20]

Given below is a structure definition. struct Contact ( char name[20] int phone_num; int postalcode; The members name, phone_num and postalcode are used to store data such as name (e.g. Alan), phone number (e.g. 87654345) and postal code (e.g. 743156) respectively. Write the C code to declare a structure named mycontacts of type struct Contact and assign the following member data to the structure you have declared. (Assume that headers and string.h> have been included in the main code) Contact Name: Celeste Phone: 87453867 Postal Code: 721013

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!