the type stack is a record with members an array of type stackrecord and top of type int

typedef struct

{

stackrecord stackarray [LIMIT];

int top;

}stack;