Dynamic memory allocation

why is dynamic memory allocation of the array done in this?
is there a particular application of dynamic memory allocation due to which it is done here?

@alankrit.agr99
Hello Alankrit,
no nothing special ,u can use static array as well

what are the cases in which we specifiaclly use dynamic memory allocation?

@alankrit.agr99
check this->

https://www.quora.com/Why-is-dynamic-memory-allocation-better-than-static-memory-allocation

https://www.quora.com/When-is-dynamic-memory-allocation-preferred-over-static-memory-allocation

how can we dynamically change the size of the dynamic array?

in all the examples that i have seen till now in the coding blocks videos, we have kept the size of the array constant only which is declared initially.

read about vector implementation

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.