Horje
what is the use of malloc in c Code Example
what is the use of malloc in c
In C, the library function malloc is used to allocate a block of memory on the heap. The program accesses this block of memory via a pointer that malloc returns. When the memory is no longer needed, the pointer is passed to free which deallocates the memory so that it can be used for other purposes.




C

Related
brainfuck programming language Code Example brainfuck programming language Code Example
Iterating through a linked list Code Example Iterating through a linked list Code Example
C malloc Code Example C malloc Code Example
online c compiler with mpi Code Example online c compiler with mpi Code Example
c fibonacci series recursion Code Example c fibonacci series recursion Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7