Computer Science, asked by ANILAV4868, 9 months ago

What is dynamic memory allocation explain with example?

Answers

Answered by dalvividya
0

Answer:

“malloc” or “memory allocation” method in C is used to dynamically allocate a single large block of memory with the specified size. It returns a pointer of type void which can be cast into a pointer of any form. For Example: ptr = (int*) malloc(100 * sizeof(int));

Similar questions