Memory Allocation in C | C Programming in Tamil | #9

Описание к видео Memory Allocation in C | C Programming in Tamil | #9

Memory Allocation in C | C Programming in Tamil | #9

In this video we are going to answer the following questions
What do mean by Memory Allocation? What are the types of memory allocation? What do you mean by Dynamic memory allocation? How to allocate memory for a variable? How to reallocate memory for a variable? How to clear memory for a variable?

Memory Allocation is the process of allocating memory for a particular variable. The types of memory allocation are
* Static Memory Allocation
* Dynamic Memory Allocation

Static memory allocation is the way allocating memory at the time of instantiating the variable. For example,
int i;
Here the memory for the variable is allocated at the time of variable definition.

Dynamic Memory Allocation is the process of allocating memory at the run time of the program. In this case, memory usage is monitored and wastage of memory is minimized.

malloc.h is used for the allocation and deallocation of memory for a variable.

malloc() is used to allocate the memory for a variable
realloc() is used to reallocate the memory of that variable
calloc() is used to allocate memory for the character variable
free() is used to remove the memory allocated by the variable

******************************************************************************
YouTube -    / @sriramasubramaniamnagarajan  
facebook: https://www.facebook.com/profile.php?...
instagram:   / sriramasubramaniam  
sololearn: https://www.sololearn.com/Profile/104...
C programming -    • C Programming Language  

canva - https://www.canva.com/join/simplified...

Turbo cpp - https://developerinsider.co/download-...

Комментарии

Информация по комментариям в разработке