while declaring array all elements inside it is intialized with code example Example: initialize whole array to 0 c++ int nScores[100] = {0};