Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions