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
Dont ansi function prototypes render lint obsolete?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is preprocessor with example?
What is gets() function?
Is c is a middle level language?
What are the 3 types of structures?
How can you pass an array to a function by value?
Write a program to print fibonacci series without using recursion?
How is null defined in c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
write a program fibonacci series and palindrome program in c
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is 1f in c?
What are the uses of null pointers?
What does a pointer variable always consist of?