Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

e) Create a new character array of appropriate side and assign sis_username pointer to it for facultyRecord and use it to print username of the structure pointed to by facultyPtr. f) Member phoneNumber of member personal of structure facultyRecord. g) Member address of member personal of the structure pointed to by facultyPtr. h) Member city of member personal of the structure pointed to by facultyPtr.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions