how to initialize an array with zeroes code example
Example 1: zeros of array c++
int A[5]; // Entries remain uninitialized
int B[5]= { 0 }; // All entries set to zero
Example 2: initialize whole array to 0 c++
int nScores[100] = {0};
int A[5]; // Entries remain uninitialized
int B[5]= { 0 }; // All entries set to zero
int nScores[100] = {0};