278 views
0 votes
0 votes
What will happen if using MALLOC ( )  we allocate entire memory from heap and we don't free it using FREE( ) ? what will happen next ?

1 Answer

0 votes
0 votes
Memory leak will occur after some point of time if we only allocate memory to variables and not deallocate the allocated memory.

If memory leak occurs, allocating memory further using malloc or new will not be possible.

Related questions