Check out example codes for "filling 2d array with 0 c++". It will help you in understanding the concepts better.

Code Example 1

int a[x][y];
std::fill(a[0], a[0] + x * y, 0);

Learn ReactJs, React Native from akashmittal.com