Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
C Language
1.8K+ articles
C-Library
133+ articles
C-Functions
87+ articles
C Basics
77+ articles
C-Dynamic Memory Allocation
26+ articles
Dynamic Memory Allocation
23+ articles
c-memory-management
5 posts
Recent Articles
Popular Articles
Deleting Memory in C
Last Updated: 24 July 2024
In C programming, we might allocate memory dynamically for various tasks but what happens when those pieces of memory are no longer needed? If not managed properly, they c...
read more
C Language
C-Dynamic Memory Allocation
Picked
c-memory-management
free() Function in C Library With Examples
Last Updated: 29 May 2023
The free() function in C is used to free or deallocate the dynamically allocated memory and helps in reducing memory wastage. The C free() function cannot be used to free ...
read more
C Language
C-Dynamic Memory Allocation
c-memory-management
Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc()
Last Updated: 13 May 2025
In C, a variable defined in a function is stored in the stack memory. The requirement of this memory is that it needs to know the size of the data to memory at compile tim...
read more
C Basics
C Language
C-Dynamic Memory Allocation
Dynamic Memory Allocation
c-memory-management
memset() in C with examples
Last Updated: 10 January 2025
memset() is used to fill a block of memory with a particular value. The syntax of memset() function is as follows : // ptr == Starting address of memory to be filled// x ...
read more
C Language
C-Functions
C-Library
c-memory-management
Use of realloc()
Last Updated: 28 May 2017
Size of dynamically allocated memory can be changed by using realloc(). As per the C99 standard: [sourcecode language="C"] void *realloc(void *ptr, size_t size);[/sourcec...
read more
C Language
C-Dynamic Memory Allocation
c-memory-management
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !