C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - General Questions (Q.No. 1)
1.
How will you free the allocated memory ?
remove(var-name);
free(var-name);
delete(var-name);
dalloc(var-name);
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
50 comments Page 5 of 5.

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.!

Kartheek said:   9 years ago
Using free.

Void free(void * ptr);

Vasu said:   9 years ago
free in place of using realloc. realloc(*ptr,0) this function is also deleted memory space in heap section.

Rashmi said:   9 years ago
Dealloc does not exist.

Only malloc, calloc, realloc and free are the methods of dynamic memory allocation.

Mohamed Mosad said:   8 years ago
To be more specific we shall say,

free(pointer_to_dynamically_allocated_area).

Sourav said:   4 years ago
I have one doubt, why not dalloc (var-name)? Please explain.


Post your comments here:

Your comments will be displayed after verification.