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 2 of 5.
Papon said:
1 decade ago
Free release the memory space occupied by the variable and the memory is available for further use on the other hand delete would delete the entire memory space occupied by the variable and the memory is not available for further use.
Alex said:
1 decade ago
Free (var-name) used to free the memory which is occupied by that variable, but variable will be there and we can reuse it in our program.
But,
If if we can reuse it in our program again then it should occupies some memory.
Is there any one having some clearance. ?
But,
If if we can reuse it in our program again then it should occupies some memory.
Is there any one having some clearance. ?
Harika said:
1 decade ago
What is the functionality of remove(var_name), dalloc(var_name)?
Pavankumar said:
1 decade ago
What is the functionality of remove (variablename)?
Surekha said:
1 decade ago
What about dalloc();?
As malloc is used for allocating memory.
What is the function of dalloc(); ?
As malloc is used for allocating memory.
What is the function of dalloc(); ?
Narasimham said:
1 decade ago
What is meant of calloc?
Sindhuja said:
1 decade ago
malloc, calloc, dalloc means? How does they differ each other?
Kayalvizhi Selvaraj said:
1 decade ago
Here free() means releasing the memory, also dalloc() does. isn't it?
Nitish Dhok said:
1 decade ago
If you allocate the memory using new then you should deallocate using delete and if you allocate the memory using malloac then you must deallocate is using free.
Roger said:
10 years ago
By Using Free-Var, you get random memory allocation.!
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers