Consider the Following Statements: Struct SupplierType
String Name; Int SupplierID;
};
Struct ApplianceType
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;
Correct Answer:
Verified
Q21: A struct is a(n) _, not a
Q23: To compare struct variables, you compare them
Q24: A list has two items associated with
Q31: Which of the following is an allowable
Q32: Consider the following statements: struct rectangleData
{
Double length;
Double
Q32: Memory is allocated for struct variables only
Q34: Which of the following aggregate operations can
Q34: Consider the following statements: struct studentType1
{
Q35: You can assign the value of one
Q37: The following statement defines a struct houseType
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents