Chapter 21: Problem 4
(Defining Structures) Provide the definition for each of the following structures: a) Structure Inventory, containing character array partName[ \(30]\), integer partNumber, floating-point price, integer stock and integer reorder. b) A structure called Address that contains character arrays streetAddress [25], city[20], state[3] and zipcode[6]. c) Structure Student, containing arrays firstName[ 15 ] and lastName[ 15 ] and variable homeAddress of type struct Address from part (b). d) Structure Test, containing 16 bit fields with widths of 1 bit. The names of the bit fields are the letters a to p.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.