For efficient memory utilization in dynamic arrays, it is important to release the allocated memory using the function _________.
- free()
- malloc()
- realloc()
- calloc()
The correct option is 'free()'. It is essential to use the free() function to release dynamically allocated memory to avoid memory leaks.
Loading...
Related Quiz
- What is the behavior of malloc when the size requested is zero?
- The ________ algorithm is known for its simplicity but is inefficient for sorting large datasets.
- The members of a structure are accessed using the ________ operator.
- To split a string into tokens in C, the function ________ is used.
- In C, the first element of an array can be accessed using index ________.