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 2 of 5.

Surekha said:   1 decade ago
What about dalloc();?

As malloc is used for allocating memory.

What is the function of dalloc(); ?

Prajwal Jain said:   1 decade ago
The free() uses C as built in function so. It will free (release) the allocated memory.

Harika said:   1 decade ago
What is the functionality of remove(var_name), dalloc(var_name)?

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

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.

HAI said:   1 decade ago
What is meaning of free?

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.

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.

Ryt one said:   1 decade ago
What is the difference in free and delete?

Hai said:   1 decade ago
What is the difference between dalloc and free?


Post your comments here:

Your comments will be displayed after verification.