The third structure in the array of structures is the one that is placed in the third position in the array, i.e. with index 2.
() invtry ( SIZE) type. , invtry[0] - , invtry[1] , invtry[2] - , , SIZE >= 3.
:
struct type{
char item[40];
double cost;
double retail;
int on_hand;
int lead_time;
};
const int SIZE = 500;
type invtry[SIZE];
, , SIZE, . : , type ( !) - , type. type, invtry.
, , - .
500 . "type" "Product", , 500 . , , ..
, invtry[2]. on_hand, invtry[2].on_hand. on_hand .
lead_time , , lead_time: invtry[2].lead_time.
, ( ), 500 - . .