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


Please Help Members By Posting Answers For Below Questions

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.

668


Can we use any name in place of argv and argc as command line arguments?

603


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.

2152


What is the benefit of using #define to declare a constant?

599


What are the disadvantages of c language?

610






How can you increase the size of a statically allocated array?

608


What is this infamous null pointer, anyway?

605


Does free set pointer to null?

549


Why c is a procedural language?

576


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

658


What is scope of variable in c?

553


What is a char c?

584


What is the use of define in c?

590


Explain can static variables be declared in a header file?

668


What's the total generic pointer type?

606