Memory Allocation

What function should be used to free the memory allocated by calloc() ?

A malloc(variable_name, 0)

B dealloc();

C memalloc(variable_name, 0)

D free();

ANS:A - dealloc();

In c++ editor goto help and look for alloc.h.

In that header file examples are given.  

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.