Check out example codes for "c++ initialise array". It will help you in understanding the concepts better.

Code Example 1

int nCount[] = {1, 2, 3, 4, 5};

Code Example 2

int arr[3] = {1, 5, 4};

Learn ReactJs, React Native from akashmittal.com