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.
Sourav said:
4 years ago
I have one doubt, why not dalloc (var-name)? Please explain.
Mohamed Mosad said:
8 years ago
To be more specific we shall say,
free(pointer_to_dynamically_allocated_area).
free(pointer_to_dynamically_allocated_area).
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.
Kartheek said:
9 years ago
Using free.
Void free(void * ptr);
Void free(void * ptr);
Roger said:
10 years ago
By Using Free-Var, you get random memory allocation.!
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.
Kayalvizhi Selvaraj said:
1 decade ago
Here free() means releasing the memory, also dalloc() does. isn't it?
Sindhuja said:
1 decade ago
malloc, calloc, dalloc means? How does they differ each other?
Narasimham said:
1 decade ago
What is meant of calloc?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers