Computer Science, asked by mrsinghave6817, 1 year ago

Explain dynamic memory allocation in c with examples

Answers

Answered by GodBrainly
0

\Large{\mathfrak{\underline{\underline{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.

Answered by XxTheBrainlyLegendxX
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