1
I have the following scenario:
typedef struct Unidade{
int cod;
} und;
typedef struct Produto{
int cod;
char nome[100];
und unidade;
} prod;
As you can see I have a unit type variable inside the product. How I write to this variable and how to access it?
In unidade
record like this: u
nidade.cod = 10;
In produto
would look like when recording this variable unidade
? And how I would read this variable later?
How is your code creating an instance of this structure?
– Maniero
in main this so Prod products[100]; //list of products und units[20]; // list of units
– Thiago
Edit the question, put it right as it is.
– Maniero