initializing all the indices of array with the same value 10 code example
Example 1: initialize whole array to 0 c++
int nScores[100] = {0};
Example 2: how to initialize an array in c
double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0};
int nScores[100] = {0};
double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0};