ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
C Language
: Pointers
Which of the following functions is used to free the allocated memory? , Which of the following functions is used to free the allocated memory?
Which of the following functions is used to free the allocated memory?
A.
remove(var-name);
remove(var-name);
B.
free(var-name);
free(var-name);
C.
delete(var-name);
delete(var-name);
D.
dalloc(var-name);
dalloc(var-name);
Solution
B. free(var-name);
Explanation
The function free() is used to de-allocate the memory allocated by the functions malloc ( ), calloc ( ), etc, and return it to heap so that it can be used for other purposes. The argument of the function free ( ) is the pointer to the memory which is to be freed.
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad