initialize dynamic array c++ to 0 code example
Example: initialize dynamic array c++ to 0
int *arrayName = new int[10]{0};
//Print array elements
for(int i=0; i<10; i++ { cout<
int *arrayName = new int[10]{0};
//Print array elements
for(int i=0; i<10; i++ { cout<