A Linked List is a collection of nodes where each node stores data and a pointer to the next node in the list. Unlike arrays, linked lists are dynamic and do not require continuous memory.
#include <stdio.h>
#include <stdlib.h>
struct Node {
int data;
struct Node* next;
};
int main() {
struct Node* head = (struct Node*) malloc(sizeof(struct Node));
head->data = 10;
head->next = NULL;
printf("Node Data: %d", head->data);
return 0;
}