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 is the importance of c in your views?
what is bit rate & baud rate? plz give wave forms
how to make a scientific calculater ?
What is wrong with this statement? Myname = 'robin';
What are the different types of control structures?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What are the various types of control structures in programming?
Why we use break in c?
What are the different types of control structures in programming?
How do you use a pointer to a function?
What is #include in c?
What is define c?
What is the difference between procedural and declarative language?
Describe the order of precedence with regards to operators in C.
main() { printf("hello"); fork(); }