Static Array Vs Dynamic Array

What is the difference?

hello @udatta

Static arrays are allocated memory at compile time and the memory is allocated on the stack. Whereas, the dynamic arrays are allocated memory at the runtime and the memory is allocated from heap.
and because dynamic array get memory at run time , they are flexible in size, ie we can change its size if we want

int arr[] = { 1, 3, 4 }; // static integer array.   
int* arr = new int[3]; // dynamic integer array.

Thank you. Is this topic covered under Dynamic Memory Allocation. Some terms are being used that will be taught in subsequent topics.

Should I switch to the topic after the current topic finishes or as soon as when I am getting a new term?

yeah . . … . .u will learn about dynamic array,new ,delete operator in this playlist.

yeah u can do that to learn unknown terms, but try to follow the sequnce given in the course as much as u can

Okay sure, thank you so much.

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.