Write a separate expression that accesses the structure members in each of the following parts:
Consider the following structure definitions and variable declarations:
struct Customer {
char lastName[ 15 ];
char firstName[ 15 ];
int customerNumber;
struct {
char phoneNumber[ 11 ];
char address[ 50 ];
char city[ 15 ];
char state[ 3 ];
char zipCode[ 6 ];
} personal; // end struct
} customerRecord, *customerPtr; // end struct Customer
customerPtr = &customerRecord;
a) Member lastName of structure customerRecord.
b) Member lastName of the structure pointed to by customerPtr.
c) Member firstName of structure customerRecord.
d) Member firstName of the structure pointed to by customerPtr.
e) Member customerNumber of structure customerRecord.
f) Member customerNumber of the structure pointed to by customerPtr.
g) Member phoneNumber of member personal of structure customerRecord.
h) Member phoneNumber of member personal of the structure pointed to by customerPtr.
i) Member address of member personal of structure customerRecord.
j) Member address of member personal of the structure pointed to by customerPtr.
k) Member city of member personal of structure customerRecord.
l) Member city of member personal of the structure pointed to by customerPtr.
m) Member state of member personal of structure customerRecord.
n) Member state of member personal of the structure pointed to by customerPtr.
o) Member zipCode of member personal of structure customerRecord.
p) Member zipCode of member personal of the structure pointed to by customerPtr.
a)
customerRecord.lastName
b)
customerPtr->lastName
c)
customerRecord.firstName
d)
customerPtr->firstName
e)
customerRecord.customerNumber
f)
customerPtr->customerNumber
g)
customerRecord.personal.phoneNumber
h)
customerPtr->personal.phoneNumber
i)
customerRecord.personal.address
j)
customerPtr->personal.address
k)
customerRecord.personal.city
l)
customerPtr->personal.city
m)
customerRecord.personal.state
n)
customerPtr->personal.state
o)
customerRecord.personal.zipCode
p)
customerPtr->personal.zipCode
You might also like to view...
Write the selection sort algorithm for an array of int in C++. You are to assume that there are predefined functions swapValues and indexOfSmallest, that is do not write these functions. However, you must write declarations with pre and post conditions for these functions.
What will be an ideal response?
Lack of ________ being present during an audio conference makes it more difficult to tell if a party is supportive of concepts being presented
A) ITU B) H.264 C) texting D) body language
(Alphabetizing Animal Names) Write a program that uses the comparison capabilities in- troduced in this chapter to alphabetize a series of animal names. Only uppercase letters should be used for the comparisons.
What will be an ideal response?
When performing a search, items that match the search term will be grouped into one of the following categories EXCEPT:
A) Settings. B) Files. C) Programs. D) Apps.