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]
The statement ____ passes a copy of the structure member emp.idNum to a function named display().
A. display(*emp.idNum);
B. display(emp.idNum);
C. display(&emp.idNum);
D. display(emp->idNum);
The function call ____ passes a copy of the complete emp structure variable to calcNet().
A. calcNet(struct emp);
B. calcNet(*emp);
C. calcNet(&emp);
D. calcNet(emp);