What are the following structure definitions in C programmin
What are the following structure definitions in C programming?
Structure inventory containing character array partName[30], integer partNumber, floating point price, integer stock, and integer reorder. A struct called address, containing character arrays streetAddress[25], city[20], state[3], and zipCode[6].Solution
Question 1:
Answer:
struct inventory{
char partName[30];
int partNumber;
float price;
int stock;
int reorder;
};
Question 2:
Answer:
struct address{
char streetAddress[25];
char city[20];
char state[3];
char zipCode[6];
};
![What are the following structure definitions in C programming? Structure inventory containing character array partName[30], integer partNumber, floating point p What are the following structure definitions in C programming? Structure inventory containing character array partName[30], integer partNumber, floating point p](/WebImages/41/what-are-the-following-structure-definitions-in-c-programmin-1125265-1761599849-0.webp)