Consider the following structure definition: struct item { char part_no[8]; char
ID: 3774069 • Letter: C
Question
Consider the following structure definition: struct item { char part_no[8]; char desc[20]; float price; int int_stock; }; Assign a price 15.75 to the 33^rd item's? Assign the second character of the 12^th item's part number the value 'y'? Assign the 97^th inventory item the same value as the 63^rd? What is wrong with each of the following statements? item[1].price = 92.32; strepy(inventory.desc, "Widgets"); inventory.price[10] = 32.12; Consider the following structure declaration: struct Item { int invenNum; double cost; int quality; }; Item tool; Which function prototype can be used for a function that displays tool's cost? void display(Item tool); void display(double tool.cost); either a or b. neither a nor bExplanation / Answer
struct Item{
int invenNum;
double cost;
int quantity;
};
Item tool; // it a type of Item
So, to show cost of toll, we need tool in function prototype.
So, Answer: a. vois display(Item tool);
Please let me know in case of any issue.