what are the various memory handling mechanisms in C ?
Answer Posted / santhi
thre are 3 memory handling mechanisms.they are
malloc,calloc,ralloc.
malloc:which allocates memory to a variable dynamically.
calloc:which allocates blocks of memory.
ralloc: which can be used to reallocation of memory incase
of unsufficient memory which is allocated earlier.
using "delete" we can free the memory allocated to a
variable.
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Can we use any name in place of argv and argc as command line arguments?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What is the benefit of using #define to declare a constant?
What are the disadvantages of c language?
How can you increase the size of a statically allocated array?
What is this infamous null pointer, anyway?
Does free set pointer to null?
Why c is a procedural language?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is scope of variable in c?
What is a char c?
What is the use of define in c?
Explain can static variables be declared in a header file?
What's the total generic pointer type?