Explain dynamic memory allocation in c with examples
Answers
Answered by
0
Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc() Since C is a structured language, it has some fixed rules for programming. One of it includes changing the size of an array.
For Example, if there is situation where only 5 elements are needed to be entered in this array.
Answered by
2
Answer:
Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc() Since C is a structured language, it has some fixed rules for programming. One of it includes changing the size of an array.
For Example, if there is situation where only 5 elements are needed to be entered in this array.
Similar questions