What is dynamic memory allocation in c with examples?
Answers
Answered by
9
⭐
hyyy...
》The dynamic allocation of memory during the program execution is achieved through two built in functions malloc or calloc, realloc and free.
____
☆There is also sizeof() function used to determine the number of bytes occupied by an entity in memory. Let is look at the use of these functions through a couple of examples.
___
hope it helps°✔✔
hyyy...
》The dynamic allocation of memory during the program execution is achieved through two built in functions malloc or calloc, realloc and free.
____
☆There is also sizeof() function used to determine the number of bytes occupied by an entity in memory. Let is look at the use of these functions through a couple of examples.
___
hope it helps°✔✔
Answered by
0
Answer:
To solve this issue, you can allocate memory manually during run-time. This is known as dynamic memory allocation in C programming. To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. These functions are defined in the <stdlib.
Similar questions