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...

In an OpenOffice Base database, a(n) ________ summarizes information for printing and presentation of the data

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ is the left pane in the SharePoint window that gives access to different areas of your site

Fill in the blank(s) with correct word

Computer Science & Information Technology

Apache Open Office can open and work with documents created in Microsoft Office

Indicate whether the statement is true or false

Computer Science & Information Technology

Case Based Critical ThinkingCase 1Mark is excited because a client has contracted his team to do a series of 3D illustrations for a website. This will be the first time his team has worked in 3D, and Mark plans to use this as an opportunity to train his staff in Illustrator's 3D capabilities. For one illustration, Mark has drawn two objects that he now wants to revolve around the same axis. Because two objects are involved, what should he do before applying the 3D filter?

What will be an ideal response?

Computer Science & Information Technology