Problem

Given the following structure and variable definitions,struct customer {char lastName[15];...

Given the following structure and variable definitions,

struct customer {

char lastName[15];

char firstName[15];

unsigned int customerNumber;

struct {

char phoneNumber[11];

char address[50];

char city[15];

char state[3];

char zipCode[6];

} personal;

} customerRecord, *customerPtr;

customerPtr = &customerRecord;

write an expression that can be used to access the structure members in each of the following parts:

a) Member lastName of structure customerRecord.

b) Member lastName of the structure pointed to by customerPtr.

c) Member firstName of structure customerRecord.

d) Member firstName of the structure pointed to by customerPtr.

e) Member customerNumber of structure customerRecord.

f) Member customerNumber of the structure pointed to by customerPtr.

g) Member phoneNumber of member personal of structure customerRecord.

h) Member phoneNumber of member personal of the structure pointed to by customerPtr.

i) Member address of member personal of structure customerRecord.

j) Member address of member personal of the structure pointed to by customerPtr.

k) Member city of member personal of structure customerRecord.

1) Member city of member personal of the structure pointed to by customerPtr.

m) Member state of member personal of structure customerRecord.

n) Member state of member personal of the structure pointed to by customerPtr.

o) Member zipCode of member personal of structure customerRecord.

p) Member zipCode of member personal of the structure pointed to by customerPtr.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 10
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT