Why are we dynamically allocating arrays using new ? code example
Example: c++ allocate dynamic with initial values
int length = 50;
int *array = new int[length]();
// returns 50 length array of 0
int length = 50;
int *array = new int[length]();
// returns 50 length array of 0