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:
(Thu, Oct 7, 2010 12:53:50 AM)
I have one doubt.
If delete the variable means that memory also free ?
Prithvi said:
(Wed, Dec 22, 2010 10:18:19 AM)
Itz correct..
Tejas said:
(Thu, Jan 20, 2011 08:30:28 AM)
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.
Raki said:
(Fri, Jan 21, 2011 10:41:13 AM)
Yes free is the in built functio in "c" language.
Arun said:
(Fri, Jan 21, 2011 11:13:58 AM)
If we set the memory free...Will the variable get deleted ?
Karim said:
(Tue, Feb 8, 2011 09:33:28 AM)
Clears the memory, correct.
free(void * block)
Free is used to deallocate the memory allocated by malloc, calloc.
Ashok said:
(Wed, Jun 1, 2011 06:15:26 AM)
What is mean by malloc and calloc?
Prits said:
(Tue, Jun 14, 2011 02:38:13 AM)
May I know then,
What is the difference between "free(var-name)" and "dalloc(var-name)"?
Yalamanda said:
(Thu, Jun 30, 2011 10:36:48 PM)
free(); is the key word in stdio.h library which free the allocated by the variable given as argument.
Raji said:
(Wed, Jul 13, 2011 12:43:46 AM)
What is the difference between free(var-name) & dalloc(var-name)?
Mareppa said:
(Sun, Aug 14, 2011 06:29:45 AM)
What is the difference between free and delete ?
Vishal said:
(Mon, Aug 29, 2011 01:39:56 AM)
The heap is reason of free because of that our program can use memory via c's DYNAMIC ALLOCATION function.
But in delete() function asks the user to specify the index of the address that to be deleted.
Vishal said:
(Mon, Aug 29, 2011 01:58:35 AM)
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.
Vicky Mehta said:
(Thu, Oct 13, 2011 06:32:09 PM)
If delete the variable means that memory also free ?
Hari said:
(Thu, Dec 8, 2011 10:59:06 AM)
Its just free the memory for the current use.
Safi said:
(Fri, Dec 30, 2011 08:38:23 PM)
Delete means increase space but at that deleted location take over by next allocated data. Hence that memory address is not free permanently.
While free means at that location space for another data entry. This location is not fill without user sent data by taking that reference.