what are the various memory handling mechanisms in C ?
Answer Posted / venkatesh kr
In C Language we can use the malloc, calloc & ralloc for memory handling but if we use the above function we should free the memory when the memory is not required.It can be done by "free" function. And also one important point is, suppose if we allocate a memory for an structure and in the process time if the structure is not required the it should be removed by using the "free" function because the system or process will be get crashed on some situations.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
p*=(++q)++*--p when p=q=1 while(q<=6)
What is volatile variable in c with example?
Explain the Difference between the New and Malloc keyword.
What is the purpose of the statement: strcat (S2, S1)?
Explain pointer. What are function pointers in C?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What are the different types of errors?
what is the significance of static storage class specifier?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
How can I list all of the predefined identifiers?
Should I learn data structures in c or python?
What does struct node * mean?
What is #include stdio h and #include conio h?
Is swift based on c?