what are the various memory handling mechanisms in C ?
Answer Posted / priya
The malloc function allows the programmer to create a block of memory of a given size:
malloc ( long integer lBlockSize ) returns void *
If we decide, during the execution of the program, that we might need to expand, or contract this memory block, we can use the realloc function:
realloc ( void * pBlock, long int lNewBlockSize ) returns void *
When the memory block is no longer used, then it must be returned back to the operating system, by calling the free function:
free ( void * pBlock )
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is c easier than java?
What is the best way to store flag values in a program?
What is c language and why we use it?
What is the concatenation operator?
Explain what are global variables and explain how do you declare them?
Sir i need notes for structure,functions,pointers in c language can you help me please
What language is lisp written in?
What is the modulus operator?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How will you declare an array of three function pointers where each function receives two ints and returns a float?
code for replace tabs with equivalent number of blanks
What is const volatile variable in c?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What are two dimensional arrays alternatively called as?
What is difference between structure and union?