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.

Yalamanda said:   1 decade ago
free(); is the key word in stdio.h library which free the allocated by the variable given as argument.

Prits said:   1 decade ago
May I know then,

What is the difference between "free(var-name)" and "dalloc(var-name)"?

Ashok said:   1 decade ago
What is mean by malloc and calloc?

Karim said:   1 decade ago
Clears the memory, correct.

free(void * block)

Free is used to deallocate the memory allocated by malloc, calloc.

Arun said:   1 decade ago
If we set the memory free...Will the variable get deleted ?

Raki said:   1 decade ago
Yes free is the in built functio in "c" language.

Tejas said:   1 decade ago
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.

Prithvi said:   1 decade ago
Itz correct..

M.suman said:   1 decade ago
I have one doubt.

If delete the variable means that memory also free ?

Sathish said:   1 decade ago
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.


Post your comments here:

Your comments will be displayed after verification.