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
What are actual arguments?
How many types of errors are there in c language? Explain
Where is volatile variable stored?
What does 2n 4c mean?
in iso what are the common technological language?
What are preprocessor directives in c?
What is the difference between local variable and global variable in c?
What is New modifiers?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
p*=(++q)++*--p when p=q=1 while(q<=6)
What is structure in c explain with example?
What is difference between && and & in c?
What are the ways to a null pointer can use in c programming language?
define string ?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above