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

how to make a scientific calculater ?

1552


Explain what is the benefit of using enum to declare a constant?

579


Which is the best website to learn c programming?

571


What is #define?

569


What is define directive?

632






Can a program have two main functions?

564


How to establish connection with oracle database software from c language?

1668


Is c a great language, or what?

596


Are comments included during the compilation stage and placed in the EXE file as well?

662


Create a simple code fragment that will swap the values of two variables num1 and num2.

800


What is the difference between far and near ?

674


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1444


How can I recover the file name given an open stream?

547


Tell me when would you use a pointer to a function?

598


How can I determine whether a machines byte order is big-endian or little-endian?

611