initialize value to n array in c++ code example
Example 1: c++ initialize array with all zeros
int myArray[10] = { 0 }; // all elements 0
Example 2: c++ initialise array
int nCount[] = {1, 2, 3, 4, 5};
int myArray[10] = { 0 }; // all elements 0
int nCount[] = {1, 2, 3, 4, 5};