C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - General Questions (Q.No. 1)
1.
How will you free the allocated memory ?
Discussion:
50 comments Page 1 of 5.
Sathish said:
1 decade ago
free(referred location name);
free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.
free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.
M.suman said:
1 decade ago
I have one doubt.
If delete the variable means that memory also free ?
If delete the variable means that memory also free ?
Prithvi said:
1 decade ago
Itz correct..
Tejas said:
1 decade ago
free(referred location name);
free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.
free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.
Raki said:
1 decade ago
Yes free is the in built functio in "c" language.
Arun said:
1 decade ago
If we set the memory free...Will the variable get deleted ?
Karim said:
1 decade ago
Clears the memory, correct.
free(void * block)
Free is used to deallocate the memory allocated by malloc, calloc.
free(void * block)
Free is used to deallocate the memory allocated by malloc, calloc.
Ashok said:
1 decade ago
What is mean by malloc and calloc?
Prits said:
1 decade ago
May I know then,
What is the difference between "free(var-name)" and "dalloc(var-name)"?
What is the difference between "free(var-name)" and "dalloc(var-name)"?
Yalamanda said:
1 decade ago
free(); is the key word in stdio.h library which free the allocated by the variable given as argument.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers