Solved

Consider the Following Statements: ApplianceType ApplianceList[25]; Which of the Following

Question 40

Multiple Choice

Consider the following statements: Consider the following statements:   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; 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;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions