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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started