The equivalent in C would be an array of elements:

int x[10];

Is an array of ints and its size = 10

Initializing an array in C can be done in several ways, for example:

int x[10] = {0,1,2,3,4,5,6,7,8,9};
int x[] = {0,1,2,3,4,5,6,7,8,9};

Or you can assign a single element:

int x[10];
x[0] = 0;
x[1] = 1;
.
.
x[9] = 9;

You should read more about arrays and how they work in c.

Answer from user5710871 on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › c language › linked-list-in-c
Linked List in C - GeeksforGeeks
January 24, 2026 - The last node's (also known as tail) pointers point to NULL to indicate the end of the linked list. A doubly linked list is a bit more complex than singly linked list.
🌐
Learn C
learn-c.org › en › Linked_lists
Linked lists - Learn C - Free Interactive C Tutorial
If the pointer is NULL, then it is the last node in the list. A linked list is held using a local pointer variable which points to the first item of the list. If that pointer is also NULL, then the list is considered to be empty.
🌐
Medium
medium.com › @Dev_Frank › c-linked-list-singly-linked-list-12aecb168834
C-LINKED LIST (Singly Linked List) | by Dev Frank | Medium
June 21, 2024 - Circular Linked List: The last node points back to the first node, forming a circle. By default, when we refer to a linked list in C, we typically mean a singly linked list.
🌐
Reddit
reddit.com › r/c_programming › lists in c
r/C_Programming on Reddit: Lists in c
March 9, 2024 -

I just want to ask a simple question that is if we made an uncontinous list in c a declared a function of type list , then how to print the function in the main , for integers we use%d ,for floats we use %f what about functions of type list (by theway this list can hold integers and string and float Here is the code i want make the main for

include <stdio.h>

include <stdlib.h>

include <stdbool.h>

define LMax 10

typedef struct Book{ int id; char author[40]; char publisher [50]; int year; } Book;

typedef struct BookList{ Book A[LMax]; int length; } BookList;

// Insertion at the beginning of the list BookList insertBegin(BookList l, Book b){ int i; for(i=l.length-1; i>=0; i--) l.A[i+1]=l.A[i]; l.A[0]=b; l.length++; return l; }

// Insertion at the end of the list BookList insertEnd(BookList l, Book b){ l.A[l.length]=b; l.length++; return l; }

// Insertion at a given position in the list BookList insertPos(BookList l, Book b, int pos){ int i; for(i=l.length; i>pos; i--) l.A[i]=l.A[i-1]; l.A[i]=b; l.length++; return l; }

// Search based on identifier int Search(BookList l, int id){ int i;

for(i = 0; i<l.length; i++){ if(l.A[i].id == id){ return i; } } return -1; }

// Insertion before the book with identifier 378 using the function Search BookList insertBefore(BookList l, Book b){ int pos;

pos= Search(l, 378);
if(pos == -1){
    printf("The book with the identifier 378 does not exist.\n");
}
else{
    l = insertPos(l, b, pos);
}
return l;

}

// Insertion after the book with identifier 378 using the function Search BookList insertAfter(BookList l, Book b){ int pos;

pos= Search(l, 378);
if(pos == -1){
    printf("The book with the identifier 378 does not exist.\n");
}
else{
    l = insertPos(l, b, pos+1);
}
return l;

}

void print(BookList l){ int i; // Displaying the books in the library printf("\nBooks in the library:\n"); for (int i = 0; i < l.length; i++) { printf("ID: %d, Author: %s, Publisher: %s, Year: %d\n", l.A[i].id, l.A[i].author, l.A[i].publisher, l.A[i].year); } }

🌐
Medium
medium.com › @anthonybaxter819 › linked-lists-in-c-74910c4b5a83
Linked Lists in C. Chaining Your Data, One Node at a Time | by Anthony Baxter | Medium
July 11, 2025 - Simply put, a linked list is a series of nodes that are stored randomly in memory connected in a train-like fashion. Each node contains its data, whatever that may be, as well as a pointer to the location of the next node.
🌐
RIT
se.rit.edu › ~swen-250 › slides › instructor-specific › Rabb › C › 08-C-Lists.pdf pdf
Personal Software Engineering Lists in C
Padding is dictated by the way CPU's access memory. ... We keep a pointer to the first node in a list head pointer.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › c language › generic-linked-list-in-c-2
Generic Linked List in C - GeeksforGeeks
July 23, 2025 - In C, we can use a void pointer and a function pointer to implement the generic functionality. The great thing about void pointers is that they can be used to point to any data type. Also, the size of all types of pointers is always the same, so we can always allocate a linked list node.
🌐
Study.com
study.com › computer science courses › computer science 111: programming in c
Linked Lists in C Programming: Definition & Example - Lesson | Study.com
August 12, 2020 - The video aid provided by Study.com ... ... A linked list is a dynamic data structure where each element (called a node) is made up of two items: the data and a reference (or pointer), which points to the next node...
🌐
Programiz
programiz.com › dsa › linked-list
Linked List Data Structure
A linked list is a random access data structure. Each node of a linked list includes the link to the next node. In this tutorial, we will learn about the linked list data structure and its implementations in Python, Java, C, and C++.
🌐
Upgrad
upgrad.com › home › tutorials › software & tech › linked list in c
Linked List in C: Types, Uses & Examples
April 28, 2025 - This structure is not stored contiguously in memory. Instead, each node can reside anywhere in memory, with pointers maintaining the chain. The first node is known as the head. The last node points to NULL, marking the end of the list.
🌐
Quora
quora.com › I-am-having-problems-with-C-code-to-create-lists-or-use-them-Can-you-help-me
I am having problems with C code to create lists or use them. Can you help me? - Quora
Answer (1 of 3): There is no such thing called lists in C. There is linked lists and array. Instead of lists you can use those but depends what you want to achieve. 1. array, they have fixed memory until and unless you use malloc() and re-alloc() to initialize and resize them dynamically 2. link...
🌐
TutorialsPoint
tutorialspoint.com › data_structures_algorithms › linked_list_program_in_c.htm
Linked List Program in C
#include <stdio.h> #include <string.h> #include <stdlib.h> struct node { int data; struct node *next; }; struct node *head = NULL; struct node *current = NULL; // display the list void printList(){ struct node *p = head; printf("\n["); //start from the beginning while(p != NULL) { printf(" %d ",p->data); p = p->next; } printf("]"); } //insertion at the beginning void insertatbegin(int data){ //create a link struct node *lk = (struct node*) malloc(sizeof(struct node)); lk->data = data; // point it to old first node lk->next = head; //point first to new first node head = lk; } void insertatend(i
🌐
Aticleworld
aticleworld.com › home › linked list in c: a beginner’s guide with structure and examples
Linked List in C: A Beginner’s Guide with Structure and Examples - Aticleworld
April 10, 2025 - A linked list in C is an example of a linear data structure that stores data dynamically using structures and pointers. It allows data to be stored at runtime by dynamically creating new memory locations.
🌐
DEV Community
dev.to › bekhruzniyazov › creating-a-python-like-list-in-c-4ebg
Creating a Python-like list in C - DEV Community
August 11, 2021 - Note: In this implementation of a list in C you can't append elements of different datatypes, here only char * elements will be used.
🌐
Medium
medium.com › @xsumirx › a-simple-yet-powerful-list-in-c-391d62962e04
A simple yet powerful “List” in C | by Sumir Jha | Medium
August 14, 2019 - A simple yet powerful “List” in C “C” a wonderful programming language and sometimes painful with memory handling. When It comes to language built in data structure utility (like, List …
🌐
Reddit
reddit.com › r/cprogramming › understanding linked lists and how to create one in c
r/cprogramming on Reddit: Understanding Linked Lists and How to Create One in C
October 15, 2024 -

As part of my goal for this year, I’ve been learning C, and I realized the best way to solidify my understanding is by teaching. So, I decided to start a blog and post weekly tutorials on C programming. Here's my first real post. I’d love to hear your thoughts and feedback!

https://www.learninglowlevel.com/posts/cm28ealr800009lgz16hgzd6e

🌐
log2base2
log2base2.com › data-structures › linked-list › linked-list-in-c.html
Linked List in C
If we use the head pointer instead of the temp while printing the linked list, we will miss the track of the starting node. (After printing the data head node will point the NULL). To avoid that, we should not change the head node's address while processing the linked list.
🌐
Quora
quora.com › What-is-the-difference-between-an-array-and-a-list-in-C-programming
What is the difference between an array and a list in C programming? - Quora
Answer: 1. first of all. There are no type list in C, you must implement it. 2. list and arrays, are data structures, independent of the chosen language. Even though, each language can implement then in not necessarily a pure way. 3. JS and Python makes some kind of combinations that make them no...
🌐
Medium
medium.com › star-gazers › linked-lists-in-c-7671b30a41c9
Linked Lists in C: An Introduction | by Jacob Allen | Star Gazers | Medium
March 9, 2021 - As previously mentioned, in order to understand how linked lists work in a language such as C, one must first understand how C interacts with your computer’s hardware, and more specifically, how it interacts with the memory in your PC.