Google News
logo
CPP - Quiz(MCQ)
What is the use of reference member type in allocator?
A)
Point to an element
B)
Sequence of an element
C)
Reference to an element
D)
Quantities of element

Correct Answer :   Reference to an element


Explanation :

free() function is used to free the memory used by the program.

Ex : 
int *p = (int*) malloc(sizeof(int)); //allocation of memory.
free(p); // freeing the memory occupied by pointer p.

Advertisement