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.
Sri said:
1 decade ago
Hello friends, What is the difference b/w free(var-name); & dalloc(var-name); If you know the answer, Could you please send the answer.
Priya said:
1 decade ago
Free the memory in the sense we can use for further use in the program. But if we delete we can't use it in the program if we want it.
Rama said:
1 decade ago
I have one doubt.
What is meant by dalloc (variable-name) ?
I think deletion of var-name means there allocated the memory.
What is meant by dalloc (variable-name) ?
I think deletion of var-name means there allocated the memory.
(1)
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.
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)"?
Rashmi said:
9 years ago
Dealloc does not exist.
Only malloc, calloc, realloc and free are the methods of dynamic memory allocation.
Only malloc, calloc, realloc and free are the methods of dynamic memory allocation.
Vasu said:
9 years ago
free in place of using realloc. realloc(*ptr,0) this function is also deleted memory space in heap section.
Yalamanda said:
1 decade ago
free(); is the key word in stdio.h library which free the allocated by the variable given as argument.
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(); ?
Kotteswari said:
1 decade ago
free () is built in function of c language. This function used to clear the memory so it is correct.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers