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

write a program to copy the string using switch case?

2390


Why n++ execute faster than n+1 ?

1819


What is the return type of sizeof?

579


What does return 1 means in c?

575


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1732






What is #include conio h?

581


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

1725


Differentiate between functions getch() and getche().

610


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1698


write a programming in c to find the sum of all elements in an array through function.

1696


write a program to rearrange the array such way that all even elements should come first and next come odd

1748


What is the use of header files?

588


What is meant by initialization and how we initialize a variable?

577


Explain what is #line used for?

597


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2236