Static array haS fixed length.length is defined while initialization.
eg:int x[10];
they have reference address i.e index number.
Dynamic array does not have the fixed length. Yo can add or delete the element .
e.g int* y=new int[10];
delete[] y;
* is dereference .They are store in heap. "New" keyword have dynamix storage duration.
Leave a comment: