Question: C PROGRAMMING Accessing Structures Consider the following structure definitions and variable declarations: typedef struct { char last_name[15]; char first_name[15]; int customer_num; struct { char phone_num[11];

C PROGRAMMING

Accessing Structures Consider the following structure definitions and variable declarations: typedef struct { char last_name[15]; char first_name[15]; int customer_num; struct { char phone_num[11]; char address[50]; char city[15]; char state[3]; char zip[6]; } personal; } customer_t; customer_t customer_rec; customer_t *customer_ptr = &customer_rec; Write a separate expression that can be used to access the structure members in each of the following parts: (a) Last name of customer record customer_rec. (b) Phone number of the customer record customer_rec.

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!