Question: Given the following structure and variable definitions: struct contact { char phoneNumber[11]; char address[50]; char city[15]; char state[3]; char zipCode[6]; }; struct customer { char
Given the following structure and variable definitions:
struct contact {
char phoneNumber[11];
char address[50];
char city[15];
char state[3];
char zipCode[6];
};
struct customer {
char lastName[15];
char firstName[15];
int customerNumber;
struct contact personal;
} customerRecord;
A program to include above structure definition, and use the structure to enter/scanf() and display/printf() the structure members in each of the following parts:
a. Member lastName of structure customerRecord
b. Member firstName of structure customerRecord
c. Member customerNumber of structure customerRecord
d. Member phoneNumber of member personal of structure customerRecord
e. Member address of member personal of structure customerRecord
f. Member city of member personal of structure customerRecord
g. Member state of member personal of structure customerRecord
h. Member zipCode of member personal of structure customerRecord
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
