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
Are bit fields portable?
What are the 5 elements of structure?
Did c have any year 2000 problems?
Write a program that accept anumber in words
What is enumerated data type in c?
What is nested structure?
Explain what is the difference between far and near ?
What is the difference between functions getch() and getche()?
Explain the use of 'auto' keyword
What are c preprocessors?
Explain heap and queue.
What is linear search?
please explain every phase in the "SDLC" in the dotnet.
Explain how can a program be made to print the line number where an error occurs?
State two uses of pointers in C?