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: 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

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

Step: 3

blur-text-image

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

process diagram for calorie tracker

Answered: 1 week ago

Question

Describe the selection process.

Answered: 1 week ago