Question: The following code is in C: 1. Given the following structure and variable definitions, struct faculty { char lastName[ 20 ]; char firstName[ 20 ];
The following code is in C: 1. Given the following structure and variable definitions, struct faculty { char lastName[ 20 ]; char firstName[ 20 ]; char* sis_username; unsigned int sis_id_number; struct { char phoneNumber[ 11 ]; char address[ 60 ]; char city[ 20 ]; char state[ 3 ]; char zipCode[ 6 ]; } personal_address; } facultyRecord, *facultyPtr; facultyPtr = &facultyRecord;
Write an expression that can be used to access the structure members in each of the following parts:
i) Member state of member personal of structure facultyRecord. j) Member zipCode of member personal of structure facultyRecord. k) Create an array 5 facultyRecords and print zip codes for all five faculties (i.e., faculty members) using array. l) Create a new pointer to facultyRecord and use it to print zip codes for all five faculties (i.e., faculty members) again.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
