Consider that there are many different components of one file such as a song rather than a word document of typed words. Research the components of why this song takes up space on a computer.
Answer:
Use the keyword def to declare the function and follow this up with the function name.
Add parameters to the function: they should be within the parentheses of the function. ...
Add statements that the functions should execute.
Answer:
Explanation:
#include <stdio.h>
#include <string.h>
typedef struct ProductInfo_struct {
char itemName[30];
int itemQty;
} ProductInfo;
ProductInfo IncreaseItemQty (ProductInfo productToStock, int increaseValue) {
productToStock.itemQty = productToStock.itemQty + increaseValue;
return productToStock;
}
int main(void) {
ProductInfo mugInfo;
int addStock;
addStock = 10;
scanf("%s", mugInfo.itemName);
scanf("%d", &mugInfo.itemQty);
**** /* Your solution goes here */ ****
printf("Name: %s, stock: %d\n", mugInfo.itemName, mugInfo.itemQty);
return 0;
}