In the array implementation of the lists, we will use the array to hold the entries and a separate counter to keep track of the number of positions are occupied. A structure will be declared consisting of Array and counter.
typedefstruct
{
}list;
int count;
int entry[100];
For simplicity, we have taken list entry as integer. Ofcourse, we can also take the list entry as structure of the employee record or of the student records etc.
Count 1 2 3 4 5 6 7 8