Consider the following statements:
struct supplierType
{string name;int supplierID;
};struct applianceType
{supplierType supplier;string modelNo;double cost;
};
applianceType applianceList[25];Which of the following statements correctly initializes the cost of each appliance to 0?
A. applianceList.cost = 0;
B. applianceList.cost[25] = 0;
C. for (int j = 1; j < 25; j++)
applianceList.cost[j] = 0;
D. for (int j = 0; j < 25; j++)
applianceList.cost[j] = 0;
Answer: D
Computer Science & Information Technology
You might also like to view...
The Quick Access Toolbar cannot be modified
Indicate whether the statement is true or false
Computer Science & Information Technology
Your bandwidth _________ is the top speed allowed by your ISP plan.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology