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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

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

Post New Answer

More C Interview Questions

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?

1 Answers  


yogesh patil in dell

3 Answers   DELL,


What is the use of the restrict keyword?

1 Answers  


What are the differences between Structures and Arrays?

1 Answers   TCS,


Which is the best sort method for library management?

1 Answers   Microsoft,


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

1 Answers  


How can I find the modification date of a file?

1 Answers   Celstream,


The differences between Windows XP and Windows Visa

8 Answers   HCL,


What are the uses of null pointers?

1 Answers  


What is bubble sort technique in c?

1 Answers  


What are the properties of union in c?

1 Answers  


Explain modulus operator.

1 Answers  


Categories