Ajay Dey's blog

Archives · 2025

Home

About

Archives

loading..
dynamic-memory-allocationc-programminglinked-list

Linked List in C

What is a Linked List ?? A linked list is a dynamic data structure used to store a sequence of elements. Unlike arrays, linked lists do not store elements in contiguous memory locations. Instead, each element, known as a node, consists of two parts: Data and a Pointer to the next Node. Components of a Linked List Linked lists consists of 3 components :- ..

Read more
loading..
Cdynamic-memory-allocation

Dynamic Memory Allocation in C

Before jumping to Dynamic memory allocation we need to know about how the memory is used by a program in C. There are 4 memory segments :- Stack - it is a region of limited amount of memory that is temporary allocated to a program by the processor and the compiler It operates in LIFO (Last in first out) format. That means that the last piece of data ad..

Read more