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: a) Member firstName of structure facultyRecord. b) Member lastName of the structure pointed to by facultyPtr. c) Member sis_id_number of structure facultyRecord. d) Member sis_id_number of the structure pointed to by facultyPtr.
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