what are the various memory handling mechanisms in C ?

Answer Posted / santhi

thre are 3 memory handling mechanisms.they are
malloc,calloc,ralloc.
malloc:which allocates memory to a variable dynamically.
calloc:which allocates blocks of memory.
ralloc: which can be used to reallocation of memory incase
of unsufficient memory which is allocated earlier.
using "delete" we can free the memory allocated to a
variable.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is action and transformation in spark?

854


write a program in c language to print your bio-data on the screen by using functions.

6560


What is the difference between the = symbol and == symbol?

840


explain what is fifo?

859


What are derived data types in c?

830


Is null valid for pointers to functions?

876


what will be maximum number of comparisons when number of elements are given?

1678


How do you define CONSTANT in C?

918


Why c is faster than c++?

819


Are negative numbers true in c?

794


Write a program to swap two numbers without using third variable in c?

883


Is there any demerits of using pointer?

832


When should you not use a type cast?

905


Is struct oop?

796


How do you use a 'Local Block'?

952