new array in cpp set as 0 code example Example: initialize whole array to 0 c++ int nScores[100] = {0};