When working with unions, typically a second variable keeps track of the current data type stored in the union.
查看答案
A ____ statement provides a simple method for creating a new and typically shorter name for an existing structure type.
A. #define
B. typedef
C. set
D. union
If you have declared a structure named Date, you can then make the name DATE a synonym for the terms struct Date, by using the statement ____.
A. typedef struct Date DATE;
B. typedef DATE struct Date;
C. #define struct Date DATE
D. #define DATE struct Date
____ creates an array of 10 PayRecord structures.
A. struct (PayRecord employee)[10];
B. struct[10] PayRecord employee;
C. struct PayRecord[10] employee;
D. struct PayRecord employee[10];
Suppose employee is an array of 10 PayRecord structures. ____ accesses the rate member of the first structure in the employee array.
A. employee.[0]rate
B. employee.rate[0]
C. employee[0].rate
D. (employee.rate)[0]