#include <stdio.
h> head = freeIndex;
freeIndex++;
#define SIZE 10 }
#define NULL_INDEX -1
void display() {
struct Node { int current = head;
int data; while (current != NULL_INDEX) {
int next; printf("%d -> ", list[current].data);
}; current = list[current].next;
}
struct Node list[SIZE]; // Array to store nodes printf("NULL\n");
int head = NULL_INDEX; // Index of the first node }
int freeIndex = 0; // Points to the next free space in the
array int main() {
insert(10);
void insert(int value) { insert(20);
if (freeIndex == SIZE) { insert(30);
printf("List is full.\n");
return; printf("Linked List: ");
} display();
// Add new node return 0;
list[freeIndex].data = value; }
list[freeIndex].next = head;