Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLease help c++ struct supplierType { string name; int supplierID; }; struct applianceType { supplierType supplier; string modelNo; float cost; }; applianceType applianceList[25]; Which of
PLease help c++
struct supplierType
{
string name;
int supplierID;
};
struct applianceType
{
supplierType supplier;
string modelNo;
float cost;
};
applianceType applianceList[25];
Which of following statements correctly initializes the cost of each appliance to 0?
1. applianceList.cost = 0;
2. applianceList.cost[25] = 0;
3. for (int j = 1; j < 25; j++)
applianceList.cost[j] = 0;
4. for (int j = 0; j < 25; j++)
applianceList.cost[j] = 0;
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started