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
You might also like to view...
Good passwords are typically at least five characters and include letters (uppercase and lowercase), numbers, and symbols.? ____________________
Answer the following statement true (T) or false (F)
The path that a project travels from original input to final output is called the ____________________.
Fill in the blank(s) with the appropriate word(s).
A __ will allow the user to connect his/her laptop to a table leg or some other object. The lock is then attached to the laptop's security slot. Most laptops have a security slot on the case to connect the__; this slot is called a Kensington Security Slot or K-Slot.
Fill in the blank(s) with the appropriate word(s).
The general management community of interest must plan for the proper staffing of the information security function. _________________________
Answer the following statement true (T) or false (F)