set all value of array to zero on declarartion c++ code example Example: initialize whole array to 0 c++ int nScores[100] = {0};