What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Answers were Sorted based on User's Feedback
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 |
Answer / Amardeep Singh
Dynamic memory allocation in C refers to the process of allocating and deallocating memory during runtime. The main dynamic allocation functions are malloc(), calloc(), realloc(), and free(). malloc() and calloc() are used for allocating memory, while realloc() is used to change the size of a block of memory, and free() is used to deallocate memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
yogesh patil in dell
What is the use of the restrict keyword?
What are the differences between Structures and Arrays?
Which is the best sort method for library management?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How can I find the modification date of a file?
The differences between Windows XP and Windows Visa
What are the uses of null pointers?
What is bubble sort technique in c?
What are the properties of union in c?
Explain modulus operator.