C++ Programmer Question: Download C++ Programmer PDF

Explain void free (void* ptr)?

Tweet Share WhatsApp

Answer:

This function is used to deallocate a block of memory that was allocated using malloc(), calloc() or realloc(). If ptr is null, this function does not doe anything.

Download C++ Programmer PDF Read All 59 C++ Programmer Questions
Previous QuestionNext Question
Explain me what is an Object/Instance?Tell me how to create a pure virtual function?