What is Dynamic memory allocation in C? Name the dynamic allocation functions.

Answer Posted / hrpynux@gmail.com

To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. ... These functions are defined in the <stdlib. h> header file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the auto keyword good for?

626


What is a void * in c?

597


How can I direct output to the printer?

812


What are types of preprocessor in c?

617


What are structure members?

597






What is omp_num_threads?

583


how to write optimum code to divide a 50 digit number with a 25 digit number??

2755


What is the use of c language in real life?

530


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2189


What is the c language function prototype?

646


When should you use a type cast?

593


Describe the modifier in c?

603


Explain about the functions strcat() and strcmp()?

598


What is difference between main and void main?

630


What does the format %10.2 mean when included in a printf statement?

1087