hi, i just want to know if it uses more memory to make an array of structures, or use a structure with arrays inside. thanks 
struct inventory
{
char item_name[30];
int part_number;
int quantity;
float cost;
float total_cost;
};
struct inventory items[10];
or,
struct inventory
{
char item_name[30][20];
int part_number[20];
int quantity[20];
float cost[20];
float total_cost[20];
};
just an exmaple of what i mean
struct inventory
{
char item_name[30];
int part_number;
int quantity;
float cost;
float total_cost;
};
struct inventory items[10];
or,
struct inventory
{
char item_name[30][20];
int part_number[20];
int quantity[20];
float cost[20];
float total_cost[20];
};
just an exmaple of what i mean