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 4 of 5.
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.
Raji said:
1 decade ago
What is the difference between free(var-name) & dalloc(var-name)?
MAREPPA said:
1 decade ago
What is the difference between free and delete ?
Vishal said:
1 decade ago
We used the free () function to free dynamically allocated memory. Such as malloc () and alloc ().
And we use the delete for destroy an object.
Or another way we can say that for explicitly destroyed we used delet.
And we use the delete for destroy an object.
Or another way we can say that for explicitly destroyed we used delet.
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.
Vicky Mehta said:
1 decade ago
If delete the variable means that memory also free ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers