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

Compare array data type to pointer data type

820


What are # preprocessor operator in c?

866


When is a “switch” statement preferable over an “if” statement?

873


What does emoji p mean?

795


Why c is a mother language?

744


What type of function is main ()?

812


Are enumerations really portable?

799


i got 75% in all semester am i eligible for your company

1952


Can we change the value of constant variable in c?

818


What Is The Difference Between Null And Void Pointer?

862


What are qualifiers and modifiers c?

747


Why should I use standard library functions instead of writing my own?

966


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3020


Is c still relevant?

851


What is the advantage of an array over individual variables?

989