题目内容

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);

If pt is declared as a pointer to a structure of type Employee, ____ refers to the idNum member of the structure.

A. (*pt).idNum
B. *pt.idNum
C. *(pt.idNum)
D. (*pt.)idNum

A union reserves sufficient memory locations to accommodate ____.

A. its smallest member’s data type
B. its largest member’s data type
C. all of its members’ data types
D. none of its members’ data types

答案查题题库